Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pictures on buttons 1

Status
Not open for further replies.

neillovell

Programmer
Aug 27, 2002
560
GB
Instead of text on a button I'd like an image. Can I do this in html or do I need some scripting?
 
Hi,

<INPUT TYPE=&quot;image&quot; SRC=&quot;file.jpg&quot; NAME=&quot;name&quot; VALUE=&quot;value&quot;>

Hope this helps!
relax.gif

 
Hey I tried to post a question to the ppl at your company, but it kept telling me there was a prob with my email syntax. Can you give me the address?
 
also, you can actually put an image ON a button (as opposed to using an image as a button) this way:

<button onclick=&quot;some js here&quot;>
<img src=&quot;file.jpg&quot; name=&quot;buttonImg&quot;>
</button>

I know the code is ancient, but wherever I see it, it looks nice! Not sure of the compatibility tho, but I think it was in the HTML 3.0 specs.....(and thus 4.0?)
&quot;Why is it always the quiet ones?&quot;

Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
AIM & MSN: robacarp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top