Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/09/2011, 15:04
Neoxs
 
Fecha de Ingreso: marzo-2003
Ubicación: Chivilcoy
Mensajes: 142
Antigüedad: 21 años, 1 mes
Puntos: 0
JScript anda en IE pero no en Firefox

Hola Amigos de Foros:

Los molesto porque tengo el siguiente problema:
estoy usando el siguiente script para rotar unas imagenes:
Código:
<script language="jscript" type="text/jscript">
array_imagen1= new Array(2)
array_imagen1[0] = new Image(989,35)
array_imagen1[0].src = "tamburi2.gif"
array_imagen1[1]= new Image(989, 35)
array_imagen1[1].src="DELICES.gif"


array_imagen = new Array(1)
array_imagen[0] =new Image(989,35)
array_imagen[0].src = "VILLA DEL SUR.gif"

contador=0

function Cambiar_Banner(){
	document.getElementById('banner').src = array_imagen[contador].src
	document.getElementById('banner1').src = "DELICES.gif" /*array_imagen1[contador].src*/
	contador ++
	contador = contador % array_imagen.length
	setTimeout("Cambiar_Banner()", 40000)
}


    </script>
Y dentro del BODY
Código:
<tr><td colspan='4' align='center' bgcolor=#000000><img name="banner1" id="banner1" src="spacer.gif" width=989 height=35 border=0 align='absmiddle'></td></tr>
<tr><td colspan='4' align='center' ><img name="banner" id= "banner" src="spacer.gif" width=989 height=35 border=0 align="absmiddle"></td></tr>
El problema es que el script anda perfecto en IE, pero en Firefox, deja los espacios en blanco y nunca carga las imágenes.
Qué debería modificar para que ande en ambos navegadores?
Desde ya muchas gracias
Saludos
__________________
Leandro Mandarano
Cyper Developments
http://www.cyper.com.ar