Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Static Menu- NS6? Why won't it work?

Status
Not open for further replies.

boyfromoz

Technical User
Joined
Feb 1, 2001
Messages
469
Location
AU
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=&quot;JavaScript&quot;>
<!-- Begin
function setVariables() {
if (navigator.appName == &quot;Netscape&quot;) {
v=&quot;.top=&quot;;
dS=&quot;document.&quot;;
sD=&quot;&quot;;
y=&quot;window.pageYOffset&quot;;
}
else {
v=&quot;.pixelTop=&quot;;
dS=&quot;&quot;;
sD=&quot;.style&quot;;
y=&quot;document.body.scrollTop&quot;;
}
}
function checkLocation() {
object=&quot;object1&quot;;
yy=eval(y);
eval(dS+object+sD+v+yy);
setTimeout(&quot;checkLocation()&quot;,10);
}
// End -->
</script>
=======================================================
Part 2
=======================================================

<!-- A1 --><BODY OnLoad=&quot;setVariables();checkLocation()&quot;><!-- -->
=======================================================
part 3
=======================================================
<!--A1 --><div id=&quot;object1&quot; style=&quot;position:absolute; visibility:show; left:0px; top:0px; z-index:2&quot;>

<table width=130 border=0 cellspacing=5 cellpadding=0>
<tr>
<td>Menu Bar</td>
</tr>
<tr>
<td><a href=&quot; >123webmaster</a></td>
</tr>
<tr>
<td><a href=&quot; >A1 Javascripts</a></td>
</tr>
<tr>
<td><a href=&quot; >Free-Clip-Art-Images</a></td>
</tr>
<tr>
<td><a href=&quot; >Freeware Files</a></td>
</tr>
<tr>
<td><a href=&quot; >Http City</a></td>
</tr>
</table>
</div><!-- -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top