Forum Moderators: open

Message Too Old, No Replies

changing a form button

I want to use my own button

         

smokeyb

1:02 pm on Oct 26, 2003 (gmt 0)

10+ Year Member



I have been messing around with a javascript lottery number picker I got from somewhere. I am trying to modify it to look more interesting but I don't know how to change the button? The button code is this:
<form name=form>
<div align="center">
<input name="button" type=button onClick="lotto();StOp()" value='Number Picker'>
</div>
</form>
Can anyone tell me what it would look like if I could use a gif as a button, we'll call the gif "blah.gif". If it is possible could I also use a image swap behavior on the button too?
Any help is always appreciated
Smokey

Birdman

1:24 pm on Oct 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use an image to submit the form by using:

<input type="image" src="blah.gif" onClick="lotto();StOp()" value='Number Picker'>

Then you will need to use a simple javascript image swap function [webmasterworld.com].