javascript help need to replace button with .gif button

Discussion in 'HTML & Website Design' started by neil patrick harris, Oct 16, 2007.

  1. #1
    Can anybody help me with this? I need to replace the javascript generated button with a gif or png button but I dont know how. heres the source code.
    <!-- java search begins-->
    
    
    
    
    
    
    
    
    <form name="search" action="result.php" method="post">
    
    
    
    
    
    
    
    
    
       <input type="text" name="q">
    
    
    
    
    
    
    
    
    
    
    
      <select name="site">
    
    
    
    
    
    
    
    
        <option>Mininova</option>
    
    
    
    
    
    
    
    
        <option>Btjunkie</optio
    
    
    
    <option>
    
    
    
    
    
    
    Isohunt
    
    
    
    </option>
    
    
    
    
    
    
    <option
    
    Torrentspy
    
    
    
    </option>
    
    
    
    
    <option>
    
    
    
    Torrentreactor
    
    
    </option>
    
    
    
    
    
    <option>
    Sumotorrents
    
    
    </option>
    
    
    
    
    
    <option>
    
    
    
    
    
    
    
    Torrentportal
    
    
    
    
    </option>
    
    
    
    <option>
    
    
    
    
    Torrentvalley
    
    
    
    
    </option>
    
    
    
    
    
    
    <option>
    
    
    
    
    Fenopy
    
    
    
    </option>
    
    
    
    
    
    <option>
    
    
    Fulldls
    
    
    
    
    </option>
    
    
    
    
    <option>
    
    
    
    
    
    
    
    EZ-TV
    
    
    </option>
    
    
    
    
    
    
    
    
    <option>
    
    
    
    Bittorrent Monster
    </option>
    
    
    
    
    <option>
    Torrentz
    
    
    </option>
    
    
    
    
    
    
    <option>
    
    
    
    
    The Pirate Bay
    
    
    
    </option>
    
    
    
    
      </select>
    
    
    
    
      <input type="submit" name="submit">
    
    
    
    <br />
    
    
    
    </form>
    
    <!-- java search ends-->
    Code (markup):
    I also would like to make the search show up in the url so people can link to it. any ideas?
     
    neil patrick harris, Oct 16, 2007 IP
  2. Geckonm

    Geckonm Guest

    Messages:
    15
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hmmm... thats not java!

    Anyways, you can use image buttons instead. You have

    <input type="submit" name="submit">

    Use

    <input name="submit" type="image" src="image.gif" />


    Good luck!
     
    Geckonm, Oct 17, 2007 IP
  3. kumru

    kumru Well-Known Member

    Messages:
    398
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Thanks for the information, it helped me a lot too.
     
    kumru, Jun 11, 2008 IP
  4. quintin671

    quintin671 Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Wow I feel stupid. I never knew it was that simple to use a graphic for a button replacement. Time to go redue my site with fancy buttons now. I always made a css to change my buttons, I don't know if this is better or worse.
     
    quintin671, Jun 27, 2008 IP