Results 1 to 2 of 2

Thread: highlight button when selected

  1. #1
    Join Date
    Oct 2007
    Posts
    103

    highlight button when selected

    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?

  2. #2
    Join Date
    Mar 2011
    Posts
    38
    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

Similar Threads

  1. Continuous stream of randomly selected quotes.
    By Foxlogic in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 13 Sep 2010, 08:16 PM
  2. How do you make buttons highlight?
    By soladragon in forum General Questions
    Replies: 1
    Last Post: 08 Aug 2006, 12:40 PM
  3. Upload fonts to a directory and have them automatically used and randomly selected.
    By eSite in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 13 Jul 2006, 05:23 AM
  4. Array and selected dropdowns
    By cabbagecoder in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 01 Jan 2006, 10:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •