It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum Script-archive

Use an image as submit button

Share your completed scripts.

Use an image as submit button

Postby webmaster on Tue Nov 08, 2005 11:40 am

This is how you replace a standard submit-button with an image.

Instead of using this code for a button:
Code: Select all
<input type="submit" name="submit" />

(This is a standard submit button)



Use this for an image:
Code: Select all
<input type="image" name="submit" src="image.jpg" />

(This code will show a border around the image)



To remove the border around the image, use this code instead:
Code: Select all
<input type="image" name="submit" src="image.jpg" style="border:0;" />
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby Phate on Tue Nov 08, 2005 10:02 pm

sweet man! nice script!
Web-Developing since '03
Image
User avatar
Phate
500+ Club
 
Posts: 826
Joined: Sun Nov 21, 2004 4:12 am
Location: 127.0.0.1

Postby SalmonBoy11 on Mon Nov 19, 2007 5:02 am

Heh, I'll definitely use this in the future.
SalmonBoy11
 
Posts: 24
Joined: Fri Nov 16, 2007 3:42 am


Who is online

Users browsing this forum: No registered users and 0 guests