SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
Thread: Dynamic Menu Bar (I.E. Only?)
-
Apr 21, 2001, 14:58 #1
- Join Date
- Apr 2001
- Location
- San Francisco Bay Area
- Posts
- 6
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I really like this Menu Bar but have only been able to use it in I.E. (though Nic's page didn't specify it was I.E. only) Any way to make it work in Netscape? Here is a link to the original location of the script: http://www.geocities.com/ResearchTri...00/menbar.html
Thanks in advance for any help.
Ron
- - - - - - - - - -
<script language="Javascript1.2">
<!--
// original content taken from Nic's JavaScript Page with permission
// lack of these three lines will result in copyright infringment
// made by: Nic's JavaScript Page - http://www.javascript-page.com
var JX = 0;
var JY = 0;
var wm;
if (document.layers){
wm = document.menbar1;
}
if (document.all) {
wm = document.all.menbar1;
}
function change(wow) {
if (document.layers){
if (wow == 1) {
wm.visibility = "hide";
wm = document.menbar2;
}
if (wow == 2) {
wm.visibility = "hide";
wm = document.menbar1;
}
}
if (document.all){
if (wow == 1) {
wm.style.display = "none";
wm = document.all.menbar2;
}
if (wow == 2) {
wm.style.display = "none";
wm = document.all.menbar1;
}
}
}
function menbar() {
if (document.layers){
JX = window.pageXOffset;
JY = window.pageYOffset;
wm.visibility = "hide";
wm.top = JY;
wm.left = JX;
wm.visibility= "show";
}
if (document.all){
if (navigator.appVersion.indexOf("Mac") == -1){
wm.style.display = "none";
JX = document.body.scrollLeft;
JY = document.body.scrollTop;
wm.style.top = JY;
wm.style.left = JX;
wm.style.display = "";
}
}
}
setInterval("menbar()",100);
//-->
</script>
Bookmarks