Foros del Web » Programando para Internet » Javascript »

banners Flash en forma aleatoria con transparencia

Estas en el tema de banners Flash en forma aleatoria con transparencia en el foro de Javascript en Foros del Web. Saludos a todos los miembros de este foro. Necesito aclarar una duda tengo el siguiente script Código: <SCRIPT LANGUAGE="JavaScript"> // Realizado por: Fabian Muller // ...
  #1 (permalink)  
Antiguo 03/11/2011, 08:59
 
Fecha de Ingreso: agosto-2008
Mensajes: 97
Antigüedad: 15 años, 8 meses
Puntos: 0
banners Flash en forma aleatoria con transparencia

Saludos a todos los miembros de este foro.
Necesito aclarar una duda tengo el siguiente script

Código:
<SCRIPT LANGUAGE="JavaScript">
// Realizado por: Fabian Muller
// WebExperto.com - Ayuda al webmaster en español

// Comienzo
var banners = 2;
var ahora = new Date()
var segundos = ahora.getSeconds()
var ad = segundos % banners;
ad +=1;
if (ad==1) {
flash="Publicidad/1.swf"
width="550";
height="245";
}
if (ad==2) {
flash="Publicidad/2.swf"
width="550";
height="245";
}

document.write('<center>');
document.write('<OBJECT CLASSID=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=' + width + ' height=' + height + ' CODEBASE=\"http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0\">');
document.write('<PARAM NAME=\"MOVIE\" VALUE=\"' + flash + '\">');
document.write('<PARAM NAME=\"PLAY\" VALUE=\"true\">');
document.write('<PARAM NAME=\"LOOP\" VALUE=\"true\">');
document.write('<PARAM NAME=\"QUALITY\" VALUE=\"high\">');
document.write('<EMBED SRC=' + flash + ' width=' + width + ' height=' + height +  ' PLAY=\"true\" LOOP=\"true\" QUALITY=\"high\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi? P1_Prod_Version=ShockwaveFlash\">');
document.write('</EMBED>');
document.write('</OBJECT>');
document.write('</center>');
// Fin

</SCRIPT>
A este escript quise ponerle transparencia que funcione en todos los navegadores ya que tengo un menú desplegadle la parte en color rojo es lo que le añadí al script me funciona pero me gustaría saber si es la forma correcta de hacerlo o hay alguna forma más adecuada o eficiente:

Código:
<SCRIPT LANGUAGE="JavaScript">
// Realizado por: Fabian Muller
// WebExperto.com - Ayuda al webmaster en español

// Comienzo
var banners = 2;
var ahora = new Date()
var segundos = ahora.getSeconds()
var ad = segundos % banners;
ad +=1;
if (ad==1) {
flash="Publicidad/1.swf"
width="550";
height="245";
wmode="transparent";
}
if (ad==2) {
flash="Publicidad/2.swf"
width="550";
height="245";
wmode="transparent";
}

document.write('<center>');
document.write('<OBJECT CLASSID=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=' + width + ' height=' + height + ' CODEBASE=\"http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0\">');
document.write('<PARAM NAME=\"MOVIE\" VALUE=\"' + flash + '\">');
document.write('<PARAM NAME=\"PLAY\" VALUE=\"true\">');
document.write('<PARAM NAME="wmode" value="transparent"">');
document.write('<PARAM NAME=\"LOOP\" VALUE=\"true\">');
document.write('<PARAM NAME=\"QUALITY\" VALUE=\"high\">');
document.write('<EMBED SRC=' + flash + ' width=' + width + ' height=' + height + ' wmode=' + wmode + ' PLAY=\"true\" LOOP=\"true\" QUALITY=\"high\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi? P1_Prod_Version=ShockwaveFlash\">');
document.write('</EMBED>');
document.write('</OBJECT>');
document.write('</center>');
// Fin

</SCRIPT>
Espero sugerencias, no soy bueno con esto pero la pegue y no estoy seguro si lo que hice esta bien

Etiquetas: aleatoria, flash, funcion, transparencia, formulario, banner
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:54.