Foros del Web » Programando para Internet » Javascript »

Rotador de Banner

Estas en el tema de Rotador de Banner en el foro de Javascript en Foros del Web. Hola, estoy insertando un código para un rotador de banner en flash, pero no funciona y no he podido encontrar el problema, les dejo el ...
  #1 (permalink)  
Antiguo 26/09/2007, 08:46
Avatar de Rriveros  
Fecha de Ingreso: noviembre-2002
Ubicación: Santiago
Mensajes: 214
Antigüedad: 21 años, 5 meses
Puntos: 0
Rotador de Banner

Hola, estoy insertando un código para un rotador de banner en flash, pero no funciona y no he podido encontrar el problema, les dejo el código, desde ya muchas gracias.

<SCRIPT LANGUAGE="JavaScript">
// Comienzo
var banners = 3;
var ahora = new Date()
var segundos = ahora.getSeconds()
var ad = segundos % banners;
ad +=1;if (ad==1) {
flash="banner1.swf"
width="468";
height="60";}
if (ad==2)
{
flash="banner1.swf"
width="468"
;height="60";}if (ad==3) {
flash="banner1.swf"
width="468";height="60";}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>
__________________
www.nelhost.net
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 01:30.