Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

Menu - always visible


< html >
< head >
< script >
<!-- 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 (y);
eval (dS + object + sD + v + yy);
setTimeout( "checkLocation()" ,10);
}
//  End -->
</ script >

</ head >

< body Background = .. / graphics / grayback.jpg OnLoad = "setVariables();checkLocation()" >
< center >< BR >< BR >< BR >
< div id = "object1" style = "position:absolute; visibility:show; left:0px; top:0px; z-index:2" >

< table width = 130 border = 0 cellspacing = 20 cellpadding = 0 >
< tr >
< td >< CENTER > Menu Bar </ CENTER ></ td >
</ tr >
< tr >
< td >< a href = "../left.htm" > Left Page </ a ></ td >
</ tr >
< tr >
< td >< a href = "../top.htm" > Top Page </ a ></ td >
</ tr >
< tr >
< td >< a href = "../contents.htm" > Contents Page </ a ></ td >
</ tr >
< tr >
< td >< a href = "../index.htm" > Index Page </ a ></ td >
</ tr >
</ table >
</ div >

< table >
< tr >
< td width = 130 >
< font color = "white" > </ font >
</ td >

< td >

The rest of your site goes here

</ td ></ tr >
</ table >

</ center >
</ BODY >
</ html >

//Thanks to David Pye for his JavaScript Vault contribution.