Código:
El código lo jalo desde: http://recolectivo.netfirms.com/banners.js// Realizado por: Fabian Muller // WebExperto.com - Ayuda al webmaster en español // Comienzo width="300"; //Anchura del banner height="300"; //Altura del banner banners= new Array(); banners[0]="http://recolectivo.netfirms.com/banners/falsoprofeta.lunes.swf"; banners[1]="http://recolectivo.netfirms.com/banners/zimmerman.martes.swf"; banners[2]="http://recolectivo.netfirms.com/banners/neb.martes.swf"; banners[3]="http://recolectivo.netfirms.com/banners/caballero.viernes.swf"; banners[4]="http://recolectivo.netfirms.com/banners/salaverga.sabado.swf"; banners[5]="http://recolectivo.netfirms.com/banners/minnasade.miercoles.swf"; banners[6]="http://recolectivo.netfirms.com/banners/mulder.domingo.swf"; totalbanners = banners.length; var ahora = new Date() var segundos = ahora.getSeconds() var ad = segundos % totalbanners; seleccionado=banners[ad]; localizador=seleccionado.lastIndexOf('.'); localizador2=localizador+4 extension=seleccionado.substring(localizador+1,localizador2); archivo=seleccionado.substring(0,localizador); document.write("<center>"); if (extension=="swf"){ flash=seleccionado; 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('<PARAM NAME="WMODE" VALUE="transparent">'); document.write('<PARAM NAME="BGCOLOR" VALUE="#333333">'); document.write('<EMBED SRC=' + flash + ' width=' + width + ' height=' + height + ' PLAY="true" LOOP="true" QUALITY="high" WMODE="transparent" BGCOLOR="#333333" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi? P1_Prod_Version=ShockwaveFlash">'); document.write('</EMBED>'); document.write('</OBJECT>');} else {document.write('<img src='+seleccionado+' width='+width+' height='+height+'>'); document.write('</center>');} // Fin // JavaScript Document
Y la evocación la hago de la siguiente manera:
Código:
Me gustaría saber por qué no sirve el link que le doy. A pesar de si entran a mis archivos SWF sí funcionan. EN TODOS ES EL MISMO LINK.<div style="background-color:#333; height:300px; width:300px; margin-top:2px"><script src="http://recolectivo.netfirms.com/banners.js" type="text/javascript"/></script></div>
Saludos!!!