---
Nta: Este script funciona solo para imagenes .GIF pero quiero que tambien sirva para ARCHIVOS .SWF (Flash)
---
Código:
---<? $numbanners = 3 //numero de banners que se rotarán $random = rand(1,$numbanners); $img = array(); $url = array(); $txt = array(); $img[1] = "archivos/banner1.gif"; $url[1] = "http://www.enlace1.com"; $txt[1] = "Visita el enlace del banner 1"; $img[2] = "archivos/banner2.gif"; $url[2] = "http://www.enlace2.com"; $txt[2] = "Visita el enlace del banner 2"; $img[3] = "archivos/banner3.gif"; $url[3] = "http://www.enlace3.com"; $txt[3] = "Visita el enlace del banner 3"; echo "<a href='$url[$random]' target='_blank'><img src='$img[random]' alt='$txt[random]' border='0'></a>"; ?>
Quiero conservar este mismo script, estilo, pero.. agregar algo para que se puedan visualizar archivos flash.
Como puedo hacer???
Desde ya, muchas gracias...