Log in

View Full Version : button script



wibumba
11-28-2005, 06:57 PM
How do you have a picture change when it's clicked?

for example: the button on the webpage gets a "indented" look when it's clicked, but returns to normal when finished clicking.

(like the submit thread button bellow, hold the mouse button down and move it over the button)

Twey
11-28-2005, 07:00 PM
<img onmousedown="this.src='button_in.png';" onmouseup="this.src='button_out.png';" src="button_out.png"/>

wibumba
11-29-2005, 03:55 AM
thanks alot. I know that was a bit of a noob question.