Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/08/2005, 10:04
zuche
 
Fecha de Ingreso: mayo-2005
Mensajes: 148
Antigüedad: 19 años
Puntos: 0
Banner Aleatorio Modificacion Del Script

Hola, necesito modificar el siguiente script:

---

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...