As some of you know already, I've been working on a nav menu script that satisfies certain criteria that I couldn't find in other menus of it's ilk that are readily available.
Here it is
and make sure to check out all the relavent source-code here
A quick list of features
- Uses validating XHTML UL trees for menu structure
- Custom image support
- Cookie-based persistence
- Tooltip Toggling
- Easy config
- Compatible with most browsers
- Built-in sniffer
- Low global namespace consumption
A quick word about namespace: Every global function/variable (there's only 1 variable) is prefixed with the string 'nm_' except the generic getCookie() and setCookie() functions. Any text-editor worth it's salt can do a find/replace on this string in the event that you happen to run into a conflict.
My only future plans for this script are to make it all OO, but I didn't have the moxie to do it this time 'round.
If anyone can test this on Opera7 or a Mac with IE, I'd like to know the results. I've tested it ok on IE5+ and Gecko. For everything else (like IE4 and NS4) it degrades. Heck, it's even readable in Lynx
P.S. For those of you that check, I know the CSS doesn't validate, but it's just the cursor:hand rule to satisfy stoopid IE5, and not required for this script to work