tips and tricks for movable type
navigation: where are you?
April 17, 2002
Scriptygoddess.com offers this bit of Javascript to create a navigation menu that identifies the page you're on.
Wondering if I can make use of that on my site with my mouseover menus, since they're pulled via an SSI. Hmmmmm.
Update 07.04.02: Brenna's method of doing this with PHP is covered in this Community Forum topic.
Comments
If you declare your page variable (for example thisPage = home... before the include - and then in the include do an if thisPage == home - show it this way, else show it that way... etc. Then yeah it should work... (that's pseudo-code. LOL!) are you referring to the navigation on *this* site?
also - fyi - I see a bunch of lines at the bottom of the comments page that look like: MT::App::Comments=HASH(0x3e844) Ambiguous use of {spam_protect} resolved to {"spam_protect"} at lib/MT/Template/Context.pm line 518
Heh, no, I wasn't referring to the navigation on this tips blog, because I haven't gotten around to making the layout compatible with the rest of The Girlie Matters - I was thinking of other portions of my site. I think the only place I'm not using the mouseover images is here and on The Girlie Blog.
Sigh, yeah gotta fix those error messages - hoping MT 2.01 will do it for me so I won't have to edit that file!! =)