Insertar un banner en flash

Hola amigos, quiero insertar un banner en mi web y no se como hacerlo, tengo ya el código se q hay q introducirlo en javascript, pero como se hace?
muchas gracias
Edu
Respuesta
1
Chavalote veremos a ver lo que se puede hacer.
La clave esta en el fscommand
Paso 1
ve a Archivo Configuracion de la Publicacion y en la pestaña HTML >plantilla marca Flash con fscommand
esto hace q la plantilla generada en html se pueda comunicar con flash
paso 2 ve al fotograma donde quieres que aparezca el banner o bien pon esta accion en un boton
fscommand("ventana", "foto.jpg");
Con esto estas diciendo que en el html vas a ejecutar la funcion ventana y como argumento le pasas el foto.jpg
ahi va el codigo html
de dentro del body
<SCRIPT LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function index_DoFSCommand(command, args) {
var indexObj = InternetExplorer ? index : document.index;
//
if(command=="ventana"){
abreventana(args);
}
// Place your code here...
//
}
function abreventana(args){
var opciones="left=100,top=100,width=475,height=325", i= 0;
mi_ventana = window.open(args,"",opciones);
}
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub index_FSCommand(ByVal command, ByVal args)\n');
document.write(' call index_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
//-->
</SCRIPT>
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
ID=index WIDTH=100% HEIGHT=100%>
<PARAM NAME=movie VALUE="index.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000033> <EMBED src="index.swf" quality=high bgcolor=#000033 WIDTH=100% HEIGHT=100% swLiveConnect=true NAME=index TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
el resultado esta en
www.granadamorisca.com
Ele suerte

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas