Results 1 to 2 of 2

Thread: change colour of button on mouse click?

  1. #1
    Join Date
    Oct 2005
    Posts
    18
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default change colour of button on mouse click?

    Hi

    Is it possible to change the colour of a graphic button when the user clicks on it?

    I have a menu system sitting across the top of a series of frames so when the user clicks on a button i would like it to change to its 'on' version without having to load a new page.

    Thanks
    Michael

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Well, you'd have to create an alternate version of the same graphic with the alternate color in mind. Best JavaScript can do is swap out one image with another onmouseover. See this tutorial: http://www.javascriptkit.com/javatutors/image1.shtml

Bookmarks

Posting Permissions

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