Use this area to submit an original
DHTML or CSS code for other visitors of DD to utilize or critique. Furthermore,
through this method of submission, your code may be added to DD's
DHTML or
CSS Library section if deemed
useful by the admin of DD. Guidelines for using this forum:

This forum should only be used to post an
original, fully functional and "practical" script. It is not for
putting up experimental or the rudimentary "my first script."

To submit a code, fill out the information
on your code as outlined in the instructions. For the actual code, ideally
you should just enter a URL to the full working demo, to make it easy for
others to check it out. However, if this isn't possible for you, you can
also submit your code inline on the forums, by attaching it.

If you're attaching the full code inline in
your post, please following the following conventions whenever possible:

For straightforward code, just attach it as a single .txt file

For code that consist of both code and images/other media, zip up
all the files and attach it as a .zip file

Should you need it, this forum supports file attachments of the
following type: .txt, .zip, .js, and images (.gif, .jpg, .png etc).

Again, if possible at all, it's best just to submit the URL to the
script instead, for ease of review/ critique by others.

By submitting a code, you declare that
you're the original author of the code, and grant Dynamic Drive to right
to include and modify the code for possible inclusion in our code library.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Put the slash_contractall into the restore function. That way if the Menu cookie is null, it contracts the menu. If the Menu cookie is not null, it leaves persistance as it is.

Thoughts? This seems to work for me.

It's really a matter of preference and how you define "persistence". If the menu cookie is null, it actually means the user has chosen to have all menu items expanded. The persistence feature as is honors this, and the next time the page loads, all menu items are expanded.

This script is perfect, except for one minor flaw in my case. I'm trying to use it on multiple pages. Unfortunately, instead of looking for the cookie and replacing / updating it... it creates a new cookie every time you navigate to a new page with the navigation on it. Anyone have any ideas?

Contract previous menu item

dmurray14 asked for 2 improvements to slashdot - No1 is sorted great - but is any of you great minds working on No2 (contracting the previous menu item whenever a new menu item is opened?
I look forward to a new updated slashdot menu
Cheers

Originally Posted by dmurray14

Thanks for the nav bar, I love it. However I do have two requests, if I may...

1) is it possible to make it so all the menu items are closed on page load?

2) Possible to have other open menu items close when another is selected? Ie, I select menu item one, it expands. I select menu item 2, and it expands and closes menu item one.

Basically, everything on the page loads, but the engines are still churning. The slashdot nav is un-usable for about 30 seconds, at which time the browser stops churning and the menu becomes expandable / contractable. Then the error above is goes into the javascript console log as an error.

Trouble with conflicting Scripts

Hey all, i love the slashdot menu, unfortunately I seem to be having trouble with conflicting scripts. What i want to do is include a line of code in the body tag loading that will load both scripts at the same time.