Ver Mensaje Individual
  #6 (permalink)  
Antiguo 09/05/2008, 05:22
Avatar de JoeMx
JoeMx
 
Fecha de Ingreso: febrero-2003
Ubicación: A Km de Aquí.
Mensajes: 1.154
Antigüedad: 22 años, 1 mes
Puntos: 4
Re: Ayuda con este Script de rotar baners.

<SCRIPT LANGUAGE="JavaScript">
// Rotador de Banner para archivos flash.
////////////////////////////////

// Comienzo Rotabanner
var banners = 4;
var ahora = new Date()
var segundos = ahora.getSeconds()
var ad = segundos % banners;
ad +=1;
if (ad==1) {
flash="http://www.aleantis.es/swf/indexfront.swf"
width="772";
height="130";
}
if (ad==2) {
flash="http://www.tubannerflash.swf"
width="772";
height="130";
}
if (ad==3) {
flash="http://www.tubannerflash.swf"
width="772";
height="130";
}
if (ad==4) {
flash="http://www.tubannerflash.swf"
width="772";
height="130";
}
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=\"WMODE\" VALUE=\"transparent\">');
document.write('<PARAM NAME=\"QUALITY\" VALUE=\"high\">');
document.write('<EMBED SRC=' + flash + ' width=' + width + ' height=' + height + ' PLAY=\"true\" LOOP=\"true\" WMODE=\"transparent\" QUALITY=\"high\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi? P1_Prod_Version=ShockwaveFlash\">');
document.write('</EMBED>');
document.write('</OBJECT>');
document.write('</center>');
// Final Rotabaners

</SCRIPT>
__________________
"Si lo piensas, es porque si lo puedes hacer"