Images as buttons

liunx

Guest
I have a button on my web-site for a visitor to add a new entry to the guest book but I don't want the grey "submit" type button, I want to use a .gif that I have created. Is it possible to do this?<br />
<br />
The code I have so far is:<br />
<br />
<button type='button' onClick='location.href = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/">http://www.htmlforums.com/archive/index.php/</a><!-- m -->"guestbook.php?act=create"'>Add new Guestbook entry</button><br><br />
<br />
Anybody have any ideas?<br />
<br />
Thanks,<br />
<br />
Simon<!--content-->Well I just create an image and do this:<br />
<br />
<input type="image" border="0" name="Submit" src=http://www.htmlforums.com/archive/index.php/"search.jpg" width="100" height="25"><!--content-->Hi there smnhicks,<br />
<br />
If you wish to use a button try this...<br />
<form action="URL"method="get"><br />
<button type="submit"><br />
<img src=http://www.htmlforums.com/archive/index.php/"some.jpg" width=" " height=" " alt=" "/><br />
</button><br />
</form>This is just a basic button you can add borders if required :D<br />
<br />
coothead<!--content-->
 
Back
Top