PDA

View Full Version : highlight button when selected



ketanco
07 Apr 2011, 07:39 PM
Hi please see

robofight.com/test/

when i click a button to go to a page, i want that button to stay highlighted. (so whichever page i am on, i want that button highlighted). how can I do that? can u give code?

awniyya1
07 Apr 2011, 08:13 PM
Hello Friend,
This is quite simple. You will be having the div or span or a tag for each menu item right? Then just change the background of the element when loading the page.

Ahamed