Problemas con Netscape

man_sierra
18 de Febrero del 2004
Quisiera saber porque el siguiente script no funciona en Netscape, pero si en IExplorer:
<html>

<head>
<title>Kike Palacio Tempusfugit</title>
<style>
body{
overflow-x:hidden;
overflow-y:scroll;
}
</style>

</head>

<body topmargin="30" bgcolor="#666666">

<table border="0" width="100%" height="57">
<tr>
<td width="33%" height="3">&nbsp;</td>
<td width="33%" height="3" valign="top" align="center">
<p>
<script language="JavaScript1.2">


/*
Scrollable Menu Links- By Dynamicdrive.com
For full source, TOS, and 100s DTHML scripts
Visit http://dynamicdrive.com
*/

//configurar las direcciones de las imagenes de las flechas
var goleftimage='img/LARRW.gif'
var gorightimage='img/LARRT.GIF'
//configurar el ancho del menu
var menuwidth=300
//configurar la velocidad del scroll (1-10)
var scrollspeed=6
//especificar el contenido del menu
var menucontents='<nobr><img border="0" src="img/fashion_tempusfugit01.jpg" width="300" height="200"> | <img border="0" src="img/fashion_tempusfugit02.jpg" width="339" height="200"> | <img border="0" src="img/fashion_tempusfugit03.jpg" width="130" height="200"> | <img border="0" src="img/fashion_tempusfugit04.jpg" width="294" height="200"> | <img border="0" src="img/fashion_tempusfugit05.jpg" width="134" height="200"> | <img border="0" src="img/fashion_tempusfugit06.jpg" width="134" height="200"> | <img border="0" src="img/fashion_tempusfugit07.jpg" width="135" height="200"></nobr>'


////NO NEED TO EDIT BELOW THIS LINE////////////

var actualwidth=''
var ns_scroll
function fillup(){
if (document.all){
test2.innerHTML=menucontents
actualwidth=test2.offsetWidth
}
else if (document.layers){
ns_scroll=document.ns_scrollmenu.document.ns_scrollmenu2
ns_scroll.document.write(menucontents)
ns_scroll.document.close()
actualwidth=ns_scroll.document.width
}
}
window.onload=fillup

function moveleft(){
if (document.all&&test2.style.pixelLeft>(menuwidth-actualwidth))
test2.style.pixelLeft-=scrollspeed
else if (document.layers&&ns_scroll.left>(menuwidth-actualwidth))
ns_scroll.left-=scrollspeed
lefttime=setTimeout("moveleft()",50)
}

function moveright(){
if (document.all&&test2.style.pixelLeft<0)
test2.style.pixelLeft+=scrollspeed
else if (document.layers&&ns_scroll.left<0)
ns_scroll.left+=scrollspeed
righttime=setTimeout("moveright()",50)
}

if (document.all||document.layers){
with (document){
write('<table border="0" cellspacing="0" cellpadding="0">')
write('<td valign="middle"><a href=#" onMouseover="moveright()" onMouseout="clearTimeout(righttime)"><img src="'+goleftimage+'"border=0></a>&nbsp;</td>')
write('<td valign="top">')
if (document.all){
write('<span style="position:relative;width:'+menuwidth+';">')
write('<span style="position:absolute;width:'+menuwidth+';clip:rect(0 '+menuwidth+' auto 0)">')
write('<span id="test2" style="position:absolute;left:0;top:0">')
write('</span></span></span>')
}
else if (document.layers){
write('<ilayer width='+menuwidth+' name="ns_scrollmenu">')
write('<layer name="ns_scrollmenu2" left=0 top=0></layer></ilayer>')
}
write('</td>')
write('<td valign="middle">&nbsp;<a href="#" onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)">')
write('<img src="'+gorightimage+'"border=0></a>')
write('</td></table>')
}
}
</script>

</p>

</td>
<td width="34%" height="3">&nbsp;</td>
</tr>
<tr>
<td width="33%" height="21">&nbsp;</td>
<td width="33%" height="21">&nbsp;</td>
<td width="34%" height="21">&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p></p>

</body>

</html>