Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-06-2008, 06:11 AM   PM User | #1
Steelcitybelle
New to the CF scene

 
Join Date: May 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Steelcitybelle is an unknown quantity at this point
Unhappy Drop down menu disappears before you can click anything

I just want to say thank you in advance to anyone who may be able to help me, and I hope I am posting this thread in the right forum.

Here is my problem. I had a site designed for me (the designer is no longer available for help), and the drop down menus will show the links below them when you hover over the main link. Unfortunately once you try to move your mouse down to a link under it, the drop down disappears before you can click on anything. I believe I've attached the right piece of javascript relating to this problem. However, since I am not an expert in this field, I am also including a link to the site for referrence. The links are in while in the upper left corner of the site. Any and all help is greatly appreciated to remedy this VERY frustrating problem.


Code:
<script language="JavaScript1.2">
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace	(" over", "");
   }
   }
  }
 }
}
window.onload=startList;
</script>

http://www.wade-j-robson.com/fastlane/index.html
Steelcitybelle is offline   Reply With Quote
Old 05-06-2008, 08:08 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Your CSS for the menu looks a little complicated(lacking specificity), so in order to correct it, I may have to rewrite it from the beginning.

I'd recommend you to structure your menu like http://www.htmldog.com/articles/suck...le/bones2.html (just view the source) and add/remove only the required styles/markup.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 05-06-2008, 01:42 PM   PM User | #3
Steelcitybelle
New to the CF scene

 
Join Date: May 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Steelcitybelle is an unknown quantity at this point
Thank you very much for your reply. Unfortunately I didn't write this code or design the layout, and really wouldn't know where to begin to try and rewrite or fix it. I was hoping it was something simple, but I guess I was wrong. What "realistic" options do I have for fixing this issue?
Steelcitybelle is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:35 AM.


Advertisement
Log in to turn off these ads.