Quarterback escribió:
¿Hmm usaras varios swf's?
si es asi pss con javascript se puede hacer, solo dime si te sirve y te lo hago; si la idea es simplemente que cada vez que la pàgina sea actualizada el banner hecho en swf cambie pss con javascript es simple, pero si lo necesitas en php pss le ire dedicando tiempo.
saludos
En realidad tengo implementado ese sistema de que cada vez que actualices la pagina cambia, pero necesito que se se vallan reproduciendo solos, cuando termina de reproducirce 1 empieze el segundo.
En sistema de cargar swf esta echo con el siguiente codigo php.
Código PHP :
<SCRIPT>
var banners = 8;
var ahora = new Date()
var segundos = ahora.getSeconds()
var ad = segundos % banners;
ad +=1;
if (ad==1) {
flash="publicidad/2vena2.swf"
width="400";
height="200";
}
if (ad==2) {
flash="publicidad/betel.swf"
width="400";
height="200";
}
if (ad==3) {
flash="publicidad/brothers.swf"
width="400";
height="200";
}
if (ad==4) {
flash="publicidad/diamante.swf"
width="400";
height="200";
}
if (ad==5) {
flash="publicidad/mediatec.swf"
width="400";
height="200";
}
if (ad==6) {
flash="publicidad/narrow.swf"
width="400";
height="200";
}
if (ad==7) {
flash="publicidad/newport.swf"
width="400";
height="200";
}
if (ad==8) {
flash="publicidad/Utzzia.swf"
width="400";
height="200";
}
document.write('<left>');
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>
Alguien que me podria ayudar?