Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/08/2008, 14:11
Avatar de budoukai
budoukai
 
Fecha de Ingreso: febrero-2005
Ubicación: es feito
Mensajes: 257
Antigüedad: 20 años
Puntos: 0
Banner aleatorio (no se ve la manito)

Tengo este codigo para mi banners aleatorios en mi web:

Código:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #000000;
}
</style></head>
<script>
var ban = new Array()
var enl = new Array()
var indice = 0

ban[0] = new Image()
ban[0].src = "publi/suburvia_teken.gif"
enl[0] ="http://suburvia.net/"

ban[1] = new Image()
ban[1].src = "publi/forobanner.gif"
enl[1] = "http://www.my-forum.org/foros.php?id=98227"

ban[2] = new Image()
ban[2].src = "publi/noctulus.gif"
enl[2] = "http://noctulus.com.pe"

function rota()
{
if (indice ==  ban.length) indice = 0
if (document.images)
 {
  document.images.fotico.src = ban[indice].src  
 }
else
 {
  document.getElementById('fotico').src=ban[indice].src
 }
indice++
setTimeout('rota()',8000)
}
function vete()
{
window.open(enl[indice-1])
}
</script>
<body>
<body onload=rota()>
<table width="582" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="582" height="77"><img src="" id="fotico" onClick="vete()"></td>
  </tr>
</table>
</html>
<noscript>
el problema es que apesar de que las imagenes enlazan a una web exterior normalmente, no se ve la manito al poner le puntero encima del banner y por lo tanto, la gente no intenta hacer click ahi.
alguien sabe como arreglar esto ?

gracias.