thatpatguy
11-27-2002, 08:01 AM
Hi Everyone,
I'm having some trouble getting some javascript (controlling dHTML layers) to work in Netscape 4+, IE5, and Netscape 6. It's working fine in Netscape 4+ and IE, but not so much in Netscape 6.
I'm relatively new to this level of javascript programming and this is the first time I've had to develope for Netscape 6 as well as IE and Netscape 4+
Any and all assitance would be most appreciated, includeing info as to where I can find all these W3C standards people talk about when developing for Netscape 6. I've gone to the W3C site but I can't find it anywhere (though I'll be the first to admit that I can be blind and miss even the most obvious of buttons).
Anyway, back to my javascript issue. Here is the javascript I'm using on the page:
var mTimer = ""
function menuShow(divID)
{
if (document.layers) {
document.layers[divID].visibility="show";
} else if (document.all){
document.all[divID].style.visibility="visible";
} else {
document.getElementById(divID).style.visibility="visible";
}
}
function menuHide(divID)
{
if (document.layers) {
document.layers[divID].visibility="hide";
} else if (document.all){
document.all[divID].style.visibility="hidden";
} else {
document.getElementById(divID).style.visibility="hidden";
}
clearTimeout(mTimer)
}
And you can see the page at http://www.digg.ca/currency_comps/site/eng/index.php
You'll see that when you roll over the main nav it brings up dHTML layers with your options for each nav button. Unfortunately, in Netscape 6, as soon as you try to roll onto a button in the dHTML layers (and off of the main nav button that made the dHTML layer visible) the layers immediately become invisible again.
So.. any and all assitance would be appreciated. Thanks in advance.
Slán,
Pat
I'm having some trouble getting some javascript (controlling dHTML layers) to work in Netscape 4+, IE5, and Netscape 6. It's working fine in Netscape 4+ and IE, but not so much in Netscape 6.
I'm relatively new to this level of javascript programming and this is the first time I've had to develope for Netscape 6 as well as IE and Netscape 4+
Any and all assitance would be most appreciated, includeing info as to where I can find all these W3C standards people talk about when developing for Netscape 6. I've gone to the W3C site but I can't find it anywhere (though I'll be the first to admit that I can be blind and miss even the most obvious of buttons).
Anyway, back to my javascript issue. Here is the javascript I'm using on the page:
var mTimer = ""
function menuShow(divID)
{
if (document.layers) {
document.layers[divID].visibility="show";
} else if (document.all){
document.all[divID].style.visibility="visible";
} else {
document.getElementById(divID).style.visibility="visible";
}
}
function menuHide(divID)
{
if (document.layers) {
document.layers[divID].visibility="hide";
} else if (document.all){
document.all[divID].style.visibility="hidden";
} else {
document.getElementById(divID).style.visibility="hidden";
}
clearTimeout(mTimer)
}
And you can see the page at http://www.digg.ca/currency_comps/site/eng/index.php
You'll see that when you roll over the main nav it brings up dHTML layers with your options for each nav button. Unfortunately, in Netscape 6, as soon as you try to roll onto a button in the dHTML layers (and off of the main nav button that made the dHTML layer visible) the layers immediately become invisible again.
So.. any and all assitance would be appreciated. Thanks in advance.
Slán,
Pat