Re: Converting graphics to buttons (submit, reset) -
09-01-2004
, 02:12 PM
No, but I can point you in the right direction. Sorry, cheap shot.
There's a form input element specifically for images. They create graphical
submit buttons.
The code looks like this:
<input type="image" src="mySubmit.gif" name="submit" id="submit">
Naming your image button "submit" is a good habit to get into. If you want a
generic button from an image, just insert a standard image tag and make use of
the onClick event. The image fields support onMouseOver, etc, as well, even if
DW won't let you apply the swap image behavior directly to the input element.
(Just apply it to a standard image and copy and paste the code into the image
field.) |