PDA

View Full Version : Looking For Help Tweaking a Script for a Nav Menu



ImGreen
05 Dec 2007, 12:39 AM
Heya,

I'm using the Javascript Dropdown Menu from the book "CSS, DHTML, & AJAX" put out by Peachpit Press, and the menu works great in his example:

The menu displays submenus when trigger-divs are rolled over -- but there are a couple of things I've been trying to change:

1. The submenus don't hide again until a document.onclick occurs -- I'd just like them to disappear on mouse out.

2. There are two buttons in my navigation menu that don't have submenus, and when these are rolled over (and highlight) they don't un-highlight until another document.click occurs. I'd just like them to un-highlight on mouse out.

I'm a beginner with javascript and I've been having a considerable amount of trouble trying to change these few things (stayed up all night trying to figure it out actually.)

If anyone who has a little more experience with javascript can lend a hand I'd be most appreciative.

An example of the menu in action is here: westenmedia.com/navmenu/navmenu.html

thanks in advance...

-ImGreen :xmas:

EDIT: Nvmd, added some extra submenus and all is good...