Results 1 to 4 of 4

Thread: How to make a Gif a button

  1. #1
    Join Date
    Feb 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to make a Gif a button

    I have this script
    instead of having this button , I want it to be a gif ( it looks much nice )
    Code:
    <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">

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    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)
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Feb 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It is working great - thanks

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    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

    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.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •