Topic awaiting preservation: Menu (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: Sweden |
posted 06-17-2003 13:48
Hi, I have inserted a menu on my page http://www.wssoftware.se |
Paranoid (IV) Inmate From: everywhere |
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. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
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). |
Nervous Wreck (II) Inmate From: Sweden |
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. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
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. |
Nervous Wreck (II) Inmate From: Sweden |
posted 06-18-2003 11:16
Thx Slime |
Paranoid (IV) Inmate From: everywhere |
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) |