Replacing a button with an pics

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England

Post 3+ Months Ago

I have some buttons that I would like to be images how would this be done?
This is the kind of button im talking about
Code: [ Select ]
<input type="submit" value="Done" />

and
Code: [ Select ]
<input type="reset" value="start over" />

ive tried
Code: [ Select ]
<input type="submit" value="<img src='assets/button.gif' />" />

But no luck :(
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9084
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

The <input type="image" /> tag creates submit buttons using images. Here is an example of usage:

Code: [ Select ]
<input type="image" src="assets/button.gif" name="submitbutton" width="60" height="60" />
  • Mars
  • Graduate
  • Graduate
  • User avatar
  • Posts: 160
  • Loc: Flordia

Post 3+ Months Ago

Or you could wrap an image in anchor tags if you don't need to submit any data from the form and just want it as a link.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 41 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.