Lo que quiero colocar es un scroll de imagenes y lo ago desde dreamweaver..
Tendra algo que ver el codigo no creo por que ningun javascript me anda en firefox y en internet explorer si
el codigo es asi
Código HTML:
<script language="JavaScript1.2"> <!-- var sliderwidth=400 var sliderheight=150 var slidespeed=5 var leftrightslide=new Array() var finalslide='' leftrightslide[0]='<a href="http://www.javascript.com.mx/" target="_blank"><img src="minibanner.gif" border=1 alt="Visita Javascript.com.mx"></a>' leftrightslide[1]='<a href="http://www.cafeonline.com.mx/" target="_blank"><img src="02.gif" border=1 alt="Visita Cafe Online"></a>' leftrightslide[2]='<a href="http://www.xom.com.mx/" target="_blank"><img src="03.gif" border=1 alt="Visita El Directorio XOM"></a>' var copyspeed=slidespeed for (i=0;i<leftrightslide.length;i++) finalslide=finalslide+leftrightslide[i]+" " if (document.all){ document.write('<marquee id="ieslider" scrollAmount=0 style="width:'+sliderwidth+'">'+finalslide+'</marquee>') ieslider.onmouseover=new Function("ieslider.scrollAmount=0") ieslider.onmouseout=new Function("if (document.readyState=='complete') ieslider.scrollAmount=slidespeed") } function regenerate(){ window.location.reload() } function regenerate2(){ if (document.layers){ document.ns_slider01.visibility="show" setTimeout("window.onresize=regenerate",450) intializeleftrightslide() } if (document.all) ieslider.scrollAmount=slidespeed } function intializeleftrightslide(){ document.ns_slider01.document.ns_slider02.document.write('<nobr>'+finalslide+'</nobr>') document. ns_slider01.document.ns_slider02.document.close() thelength=document.ns_slider01.document.ns_slider02.document.width scrollslide() } function scrollslide(){ if (document.ns_slider01.document.ns_slider02.left>=thelength*(-1)){ document.ns_slider01.document.ns_slider02.left-=slidespeed setTimeout("scrollslide()",100) } else{ document.ns_slider01.document.ns_slider02.left=sliderwidth scrollslide() } } window.onload=regenerate2 //--> </script> <ilayer width=&{sliderwidth}; height=&{sliderheight}; name="ns_slider01" visibility=hide> <layer name="ns_slider02" onMouseover="slidespeed=0;" onMouseout="slidespeed=copyspeed"></layer> </ilayer>