benek
11-12-2004, 08:43 PM
Hi, I'm new in this forum, and I'm new to js as well. I've been making webpages for a long time, but never got into js. I'm trying to figure out how to make a dhtml popup menu. I found some script for toggling layer visibility on another forum, so I'm trying to get that to work now as the first step.
Here's the javascript:
menu.js (http://www.mumstudents.org/~blisefski/dhtml-menu/menu.js)
Here's the html page i'm using it on:
index.html (http://www.mumstudents.org/~blisefski/dhtml-menu/index.html)
Here's the css file for that page: stylesheet.css (http://www.mumstudents.org/~blisefski/dhtml-menu/stylesheet.css)
(you can ignore all of the css except the #layer1 at the bottom)
So here's the problem:
The showLayer function isn't working!
layer1 should become visible when you mousover the link "nav pop," but it doesn't.
I tried making layer1 visible to start with rather than hidden, and then when I moused over the link the layer would hide (so I guess the hideAll and hideLayer functions appear to be working), however the showLayer function does not.
I don't really know javascript so it's hard for me to troubleshoot this. It all looks right to me. Can anyone see why this isn't functioning like it should? Any help would be greatly appreciated.
Here's the javascript:
menu.js (http://www.mumstudents.org/~blisefski/dhtml-menu/menu.js)
Here's the html page i'm using it on:
index.html (http://www.mumstudents.org/~blisefski/dhtml-menu/index.html)
Here's the css file for that page: stylesheet.css (http://www.mumstudents.org/~blisefski/dhtml-menu/stylesheet.css)
(you can ignore all of the css except the #layer1 at the bottom)
So here's the problem:
The showLayer function isn't working!
layer1 should become visible when you mousover the link "nav pop," but it doesn't.
I tried making layer1 visible to start with rather than hidden, and then when I moused over the link the layer would hide (so I guess the hideAll and hideLayer functions appear to be working), however the showLayer function does not.
I don't really know javascript so it's hard for me to troubleshoot this. It all looks right to me. Can anyone see why this isn't functioning like it should? Any help would be greatly appreciated.