PDA

View Full Version : change colour of button on mouse click?



mickeymickeyg
04-11-2006, 09:15 AM
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

ddadmin
04-11-2006, 06:53 PM
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