Foros del Web » Programando para Internet » Javascript »

Problemas con mozilla

Estas en el tema de Problemas con mozilla en el foro de Javascript en Foros del Web. Hola a todos: Tengo problemas con un slide en IE funciona perfectamente pero en Mozilla me aparecen todas las fotos en linea no van pasando, ...
  #1 (permalink)  
Antiguo 03/12/2008, 12:48
 
Fecha de Ingreso: diciembre-2007
Mensajes: 13
Antigüedad: 16 años, 4 meses
Puntos: 0
Problemas con mozilla

Hola a todos:
Tengo problemas con un slide en IE funciona perfectamente pero en Mozilla me aparecen todas las fotos en linea no van pasando, quedan todas en forma estatica una al lodo de la otra. Ah ahi va el código

<script language="javascript">


var swidth=250

var sheight=180

var sspeed=2

var imagef=''


var leftimage=new Array();
leftimage[0]='<img src="http://www.lreventos.com.ar/imagenes/bares/bares1.jpg" width=250 height=180 border=1>'
leftimage[1]='<img src="http://www.lreventos.com.ar/imagenes/bares/bares2.jpg" width=250 height=180 border=1>'
leftimage[2]='<img src="http://www.lreventos.com.ar/imagenes/bares/bares3.jpg" width=250 height=180 border=1>'
leftimage[3]='<img src="http://www.lreventos.com.ar/imagenes/bares/bares4.jpg" width=250 height=180 border=1>'
leftimage[4]='<img src="http://www.lreventos.com.ar/imagenes/bares/bares5.jpg" width=250 height=180 border=1>'
leftimage[5]='<img src="http://www.lreventos.com.ar/imagenes/bares/bares6.jpg" width=250 height=180 border=1>'
leftimage[6]='<img src="http://www.lreventos.com.ar/imagenes/bares/bares7.jpg" width=250 height=180 border=1>'
leftimage[7]='<img src="http://www.lreventos.com.ar/imagenes/bares/bares8.jpg" width=250 height=180 border=1>'


for (mi=0;mi<leftimage.length;mi++)
imagef=imagef+leftimage[mi]


function start(){
if (document.all) return
if (document.getElementById){
document.getElementById("slider").style.visibility ="show"
initial6(document.getElementById('slider'))
}
else if(document.layers){
document.slider1.visibility="show"
intialslide()
}
}
function intialslide(){
document.slider1.document.slider2.document.write(' <nobr>'+imagef+'</nobr>')
document.slider1.document.slider2.document.close()
thel=document.slider1.document.slider2.document.wi dth
document.slider1.document.slider2.left-=thel
sslide()
}
function sslide(){
if (document.slider1.document.slider2.left>=thel*(-1)){
document.slider1.document.slider2.left-=sspeed
setTimeout("sslide()",100)
}
else{
document.slider1.document.slider2.left=swidth
sslide()
}
}
function initial6(whichdiv){
tdiv6=eval(whichdiv)
tdiv6.innerHTML=('<nobr>'+imagef+'</nobr>')
tdiv6.style.left=swidth
thel=swidth*leftimage.length
scroll6()
}
function scroll6(){
if (parseInt(tdiv6.style.left)>=thel*(-1)){
tdiv6.style.left=parseInt(tdiv6.style.left)-sspeed
setTimeout("scroll6()",100)
}
else{
tdiv6.style.left=swidth
scroll6()
}
}

</script>
<p align="center"><b>
<script>
if (document.all){
document.write('<marquee id="slidere" scrollAmount=6 style="width:250;height:180;">'+imagef+'</marquee>')
slidere.onmouseover=new Function("slidere.scrollAmount=0")
slidere.onmouseout=new Function("if (document.readyState=='complete') slidere.scrollAmount=6")
}
if (document.layers){
document.write('<ilayer width=250 height=180 name="slider1" bgcolor="white" visibility=hide>')
document.write('<layer name="slider2" onMouseover="sspeed=0;" onMouseout="sspeed=6">')
document.write('</layer>')
document.write('</ilayer>')
}
if (document.getElementById&&!document.all){
document.write('<div style="position:absolute;width:250;height:180;clip :rect(0 102 82 0);">')
document.write('<div id="slider" style="position:relative;width:&{swidth};" onMouseover="sspeed=0;" onMouseout="sspeed=6">')
document.write('</div></div>')
}
</script>

Lo pueden ver en www.lreventos.com.ar

Desde ya gracias.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:56.