Closed Thread Icon

Topic awaiting preservation: Menu Pages that link to <a href="https://ozoneasylum.com/backlink?for=8723" title="Pages that link to Topic awaiting preservation: Menu" rel="nofollow" >Topic awaiting preservation: Menu\

 
Author Thread
SmashHallon
Nervous Wreck (II) Inmate

From: Sweden
Insane since: Mar 2003

posted posted 06-17-2003 13:48

Hi, I have inserted a menu on my page http://www.wssoftware.se
It is an easy document.all(elmnt).style.visibility="visible" menu, and it does not work in netscape...

Just curious if u know what broswers my menu may work in.

Is it hard to fix so this menu is crossbrowser compilant?

Just view souce in http://www.wssoftware.se to see it...

I am not professional at layers/divs/dom so I cant implement a harder menu. (This is found on w3schools btw)

Any help appreciated.
/Smash

quisja
Paranoid (IV) Inmate

From: everywhere
Insane since: Jun 2002

posted posted 06-17-2003 17:18

document.getElementByID(elmnt).style.visibility="visible" is the standard way of doing it now. Which versions of Netscape are you looking for it to work in? Older versions require special treatment, as do older versions of IE.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 06-17-2003 17:41

That method will work in all 5+ versions of IE (and that's like over 97% of IE users but then again the getElementById should work in 5+ browsers for IE and NN).

NN4+ would be document.layers.elemnt.visibility I think



.:[ Never resist a perfect moment ]:.

SmashHallon
Nervous Wreck (II) Inmate

From: Sweden
Insane since: Mar 2003

posted posted 06-17-2003 23:10

I tried Netscape 7.0 and it didnt even work there so I didnt try the lower versions of Netscape. The menus didnt show up. But maybe I did something wrong I dont know. Some property in Netscape or I dont know.

Can you try if u get it to work in Netscape?

Thx in advance,
Smash

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 06-18-2003 02:10

Do not use document.all, and do not use document.layers. Use document.getElementById. If you do it right then, it will work in all recent versions of practically every browser.

SmashHallon
Nervous Wreck (II) Inmate

From: Sweden
Insane since: Mar 2003

posted posted 06-18-2003 11:16

Thx Slime

Could u give me some practical example of how doing it right is in my example http://www.wssoftware.se

Doing it right does not help me much

Thanks in advance
Smash

quisja
Paranoid (IV) Inmate

From: everywhere
Insane since: Jun 2002

posted posted 06-18-2003 17:06

Read my first post. You simple replace references to document.all with document.getElementByID. Then it should work:

code:
function showmenu(elmnt)
{
document.getElementByID(elmnt).style.visibility="visible"
}

function hidemenu(elmnt)
{
document.getElementByID(elmnt).style.visibility="hidden"
}


elmnt must be the ID of an element in the document.

« BackwardsOnwards »

Show Forum Drop Down Menu