View Full Version : Curious Highlighting Problem with Smooth Navigational Menu (v1.31)

10-21-2009, 03:06 PM
I'm currently using Smooth Navigational Menu (v1.31) for a site I'm developing. It's a beautiful piece of work, but I'm running into an odd glitch. I'm also using PHP to highlight the current menu item, for example:

<li><a href="pageOne.php" <?php if ($pageName=="pageOne") echo 'class="selected"'; ?>>Page One</a>

When I load up the page, it looks great, but after I hover and then move the mouse away, the menu retracts, and the highlight disappears.

I'm guessing it's something in the Javascript which causes it to revert to a non-highlighted state, hence my reason for posting in the JS forum. What do you guys think?

UPDATE: Nevermind, I thought of a workaround that didn't involve messing with the javascript! This thread can be closed now. :)