Ver Mensaje Individual
  #10 (permalink)  
Antiguo 14/08/2005, 06:54
zuche
 
Fecha de Ingreso: mayo-2005
Mensajes: 148
Antigüedad: 19 años
Puntos: 0
Hey muchisimas gracias!

Execelente Comunidad!

---

POR ULTIMO, el script ya funciona muy bien, pero aun asi las extensiones .swf (flash) no se muestra, es decir, que al tocar el banner3.swf se muestra un recuadro todo blanco (en ves de mostrar el banner animado de una medida ...x...

Extension GIF: Perfecto

Extension SWF: Problemas

---

De momento el script esta formado asi:

Código:
<?php
$numbanners = 3; //numero de banners que se rotarán
$random = rand(1,$numbanners);
$img = array();
$url = array();
$txt = array();

$img[1] = "banner1.gif";
$url[1] = "http://www.banner-primero.com";
$txt[1] = "Visita el enlace del banner 1";

$img[2] = "banner2.gif";
$url[2] = "http://www.banner-segundo.com";
$txt[2] = "Visita el enlace del banner 2";

$img[3] = "banner3.swf";
$url[3] = "http://www.banner-tercero.com";
$txt[3] = "Visita el enlace del banner 3";

$tipo = explode(".", $img[$random]); 
$ext = $tipo[sizeof($tipo) -1]; 

if ( $ext == "swf" ) { 
echo "<object data=\"".$img[$random]."\" type=\"application/x-shockwave-flash\">".$txt[$random]."</object>"; 
} 
else { # $ext = "gif" 
echo "<a href=\"".$url[$random]."\"><img src=\"".$img[$random]."\" alt=\"".$txt[$random]."\"></a>"; 
}
?>
---

Por cierto dos detalles que me gustaria corregir/agregar..1) es que no se mostrara el borde (colorido) de los banner (borde "0") y 2) que al clickear sobre el banner se abra una nueva ventana, que no sea en la misma. En que parte del script o que puedo hacer para corregir/agregar esos dos detalles??

Desde ya, muchisimas gracias por la colaboracion

Última edición por zuche; 14/08/2005 a las 07:03