Forum Moderators: open

Message Too Old, No Replies

Rollover effect to menu

         

John_Wise

12:24 am on Jan 27, 2004 (gmt 0)

10+ Year Member



I am trying to add a rollover effect to my menu. Preferably, I would like to have whatever page the user is on be a different color than the rest of the hyperlinks.
I am also curious about something else. What is the best way to do rollovers and not have browser conflicts?

If CSS is okay to do, how can I change the class of an anchor after determining the page that the user is on?
Thanks.

balinor

1:05 am on Jan 27, 2004 (gmt 0)

10+ Year Member



Here's a good link to a pure CSS menu that actually works in IE:

[xs4all.nl ]

isitreal

5:59 pm on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This is easiest to do if you script in the navigation with for example PHP, then just have the script add the css clesses to the nav links, and if it's the page it's on, make the navlink the active CSS you want it to be.