Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-25-2005, 02:13 PM   PM User | #1
coderpro
New to the CF scene

 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
coderpro is an unknown quantity at this point
form submit image

how do i change the input button for a FORM to a picture?

Like
<input type=submit value="Click"> will make a gray button...
coderpro is offline   Reply With Quote
Old 05-25-2005, 02:25 PM   PM User | #2
rwildcard
New to the CF scene

 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
rwildcard is an unknown quantity at this point
css or img

<INPUT
id="submit"
style="BACKGROUND-IMAGE: url(click.gif)"
type="submit"
value="Click"
name="Submit1">

That is the first and easiest way...the other is to actually use an img tag and add onclick, onmouseover....etc to it. I hope this helped...
rwildcard is offline   Reply With Quote
Old 05-25-2005, 02:45 PM   PM User | #3
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
You can do it easier like this -

<input type="image" src="image.jpg">

The image type is by default, a submit button. If you get what I mean.
mark87 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:08 PM.


Advertisement
Log in to turn off these ads.