Log in

View Full Version : How to make a Gif a button



mailtosaleh
02-21-2007, 12:43 AM
I have this script
instead of having this button , I want it to be a gif ( it looks much nice )

<INPUT type="button" value="hello" onClick="window.open('http://www.mywebsit.com/mypage.htm','mywindow','width=250,height=40,resizable=no,left=0,top=0,screenX=0,screenY=0')" style="border:1px solid #EDECE4; float: right; color:#000000; background-color:#EDECE4; font-weight:700">

BLiZZaRD
02-21-2007, 01:28 AM
try <INPUT type="image" src="http://path/to/image.gif" blah blah...>

I know it is something like that, I will try to find the exact code for you (if this isn't it) :)

mailtosaleh
02-21-2007, 01:35 AM
It is working great - thanks

BLiZZaRD
02-21-2007, 01:39 AM
Welcome :d I was just coming back to say that was the correct way, but I wasn't sure how it would work with the JS, I guess it is good then:D

Just be careful for those that don't have images enabled. You could add a title="Submit" so that it would degrade to a text link for those cases.