Inserted a script into a page to freeze a menu on the left of the screen while scrolling down the page. WOrks in IE5 but can't get it to work in NS6.
The functions set variables and checklocation are where the brains of this script are, but I can't find the problem.
I'm sure the script only needs an extra line of two but I can't work it out. Can anyone help?
Scrip below
3 parts to this script
=================================================
part 1
=================================================
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function setVariables() {
if (navigator.appName == "Netscape"
{
v=".top=";
dS="document.";
sD="";
y="window.pageYOffset";
}
else {
v=".pixelTop=";
dS="";
sD=".style";
y="document.body.scrollTop";
}
}
function checkLocation() {
object="object1";
yy=eval
;
eval(dS+object+sD+v+yy);
setTimeout("checkLocation()",10);
}
// End -->
</script>
=======================================================
Part 2
=======================================================
<!-- A1 --><BODY OnLoad="setVariables();checkLocation()"><!-- -->
=======================================================
part 3
=======================================================
<!--A1 --><div id="object1" style="position:absolute; visibility:show; left:0px; top:0px; z-index:2">
<table width=130 border=0 cellspacing=5 cellpadding=0>
<tr>
<td>Menu Bar</td>
</tr>
<tr>
<td><a href=" >123webmaster</a></td>
</tr>
<tr>
<td><a href=" >A1 Javascripts</a></td>
</tr>
<tr>
<td><a href=" >Free-Clip-Art-Images</a></td>
</tr>
<tr>
<td><a href=" >Freeware Files</a></td>
</tr>
<tr>
<td><a href=" >Http City</a></td>
</tr>
</table>
</div><!-- -->
The functions set variables and checklocation are where the brains of this script are, but I can't find the problem.
I'm sure the script only needs an extra line of two but I can't work it out. Can anyone help?
Scrip below
3 parts to this script
=================================================
part 1
=================================================
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function setVariables() {
if (navigator.appName == "Netscape"

v=".top=";
dS="document.";
sD="";
y="window.pageYOffset";
}
else {
v=".pixelTop=";
dS="";
sD=".style";
y="document.body.scrollTop";
}
}
function checkLocation() {
object="object1";
yy=eval

eval(dS+object+sD+v+yy);
setTimeout("checkLocation()",10);
}
// End -->
</script>
=======================================================
Part 2
=======================================================
<!-- A1 --><BODY OnLoad="setVariables();checkLocation()"><!-- -->
=======================================================
part 3
=======================================================
<!--A1 --><div id="object1" style="position:absolute; visibility:show; left:0px; top:0px; z-index:2">
<table width=130 border=0 cellspacing=5 cellpadding=0>
<tr>
<td>Menu Bar</td>
</tr>
<tr>
<td><a href=" >123webmaster</a></td>
</tr>
<tr>
<td><a href=" >A1 Javascripts</a></td>
</tr>
<tr>
<td><a href=" >Free-Clip-Art-Images</a></td>
</tr>
<tr>
<td><a href=" >Freeware Files</a></td>
</tr>
<tr>
<td><a href=" >Http City</a></td>
</tr>
</table>
</div><!-- -->