Quote:
|
quote:I need to use an image as a button since it is not a submit button
|
You can just use a plain button, instead of an image. It looks just like a submit button.
<input type='button' onclick='doSomething()' value='click' />
Quote:
|
quote:When the button has the focus, I need it to change shape for instance.
|
A normal button like I mentioned above has 3D effects just like the submit button (on most platforms, anyway).
However, you could dynamically change the src of the image to an image that looks like the first one, except that it's a different shape or color.
<input type='image' onmousedown='this.src="down_image.png"' onmouseup='this.src="up_image.png"' src='up_image.png' />
Let me know if either of these is what you need.
HTH,
-Snib
<><
http://www.snibworks.com
There are only two stupid questions: the one you don't ask, and the one you ask more than once :-)