Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Use an image as submit button



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Script-archive
View previous topic :: View next topic  
Author Message
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3620
Location: Sweden

PostPosted: Tue Nov 08, 2005 12:40 pm    Post subject: Use an image as submit button Reply with quote

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

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

(This is a standard submit button)



Use this for an image:
Code:
<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:
<input type="image" name="submit" src="image.jpg" style="border:0;" />
Back to top
View user's profile Send private message Visit poster's website
Phate
500+ Club


Joined: 21 Nov 2004
Posts: 818
Location: 127.0.0.1

PostPosted: Tue Nov 08, 2005 11:02 pm    Post subject: Re: Use an image as submit button Reply with quote

sweet man! nice script!
Back to top
View user's profile Send private message Send e-mail AIM Address
SalmonBoy11



Joined: 16 Nov 2007
Posts: 22

PostPosted: Mon Nov 19, 2007 6:02 am    Post subject: Re: Use an image as submit button Reply with quote

Heh, I'll definitely use this in the future.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Script-archive All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap