Been thinking about this for a while...

I've been wanting a way to highlight a menu item so that when you are on
that page, the menu item on the menu is marked or highlighted indicating
that is the page you are on.

I came up with one way, which is not exactly what I really want, but getting
in that direction by using if statements in the menu selections like:

* [[main|Home [if equal {wv-requri} '/main'][^active.png
class=activemenu^][if][if equal {wv-requri} '/'][^active.png
class=activemenu^][if]]]
* [[about|About Us [if equal {wv-requri} '/about'][^active.png
class=activemenu^][if]]]
* [[contact|Contact Us [if equal {wv-requri} '/contact'][^active.png
class=activemenu^][if]]]
* [[project|Project List [if equal {wv-requri} '/project'][^active.png
class=activemenu^][if]]]

{wv-requri} is a value that my Web Visitor plugin provides.  It contains the
URI for the page you are currently on.

So the IF statement checks to see if the page you are on maches the menu
item and (now) places a triangle next to it indicating you are on that page.


Ideally, I would want the button background in this case to be the same as
like when you are hovering over it with a mouse.

Not quite there yet.  The home or main button needs two checks in case you
land on the page without selecting the home page.

Example page...  http://www.maelight.com

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en.

Reply via email to