Forum Moderators: open
I am wanting to "Replace" the Standard "Default" Search box "BUTTON" on my Search Box from the standardized Gray form Button, to a Gif Search Button that I created myself... Only problem is is that I cant figure out where exactley in the short string of form code to take out whatever to replace my Gif image source code to make it (the search form) function properly...!!! Could someone please lend a helping hand, Im getting desperate..!!! Can this be done..? But then again perhaps not, maybe the way the Form Code is written itself maybe this isnt possible.... I hope it is possible, but if not, well at least we tried...:) Listed below is the snippit of form code to the search box and below that is the path to my Gif that I created that I want to replace the Standardized Gray Default Button.... Does somebody know where to paste my Gif into this string of form <code> to make it properly...? Hope someone can help.....!!
I really appreciate it...!!!
Village Idiot...
<form action="/cgi-sys/entropysearch.cgi" target=searchwindow>
Search Query <input type="text" name="query" value="">
<input type="hidden" name="user" value="fragrant">
<input type="hidden" name="basehref" value="http://example.com">
<input type="hidden" name="template" value="default">
<input type="submit" value="Search">
</form>
-----------
and my Gif code
<img src="images/searchbutton.gif" width="50" height="14">
(edited by: tedster at 9:33 am (utc) on May 30, 2002)
Well it kinda worked.... The form works... Cept now instead of seeing the Button I made I keep coming up with a broken image.... mmmmmmmmm well, I`ll keep pluggin away at it.....!!!
Thanks Justa...!
you would be coding
<form action="/cgi-sys/entropysearch.cgi" method="post" target=searchwindow>
Search Query <input type="text" name="query" value="">
<input type="hidden" name="user" value="fragrant">
<input type="hidden" name="basehref" value="http://example.com">
<input type="hidden" name="template" value="default">
<img src="images/searchbutton.gif" width="50" height="14">
</form>
Goodluck!
(edited by: tedster at 9:33 am (utc) on May 30, 2002)
Sorry to be such a Pain Royal.....
Village Idiot....
Search Query <input type="text" name="query" value="">
<input type="hidden" name="user" value="fragrant">
<input type="hidden" name="basehref" value="http://example.com">
<input type="hidden" name="template" value="default">
<img type="image" alt="Submit!" src="images/searchbutton.gif" width="50" height="14">
</form>
(edited by: tedster at 9:34 am (utc) on May 30, 2002)
Before when I was useing the standard form without any altering it worked just fine but now its a no go..... Guess we must be leaving / or have taken / changed something pretty functional that........ well, made it function.???
I justa :) put my link on my profile.... Just uploaded the page, and now Ive opened up the Root directory...
If you are going to use the target="" you have the following chioces.
_blank opens a new window
_parent for frames, opens next page in parent frame
_self again for frames, opens window in own frame
_top can't recall at the moment, which is rather slack on my behalf.
Let me know how you go.
Acutally, I've read somewhere you can specify the window in your target, but I don't think I've tried that before. It's been a long day, so maybe I have and just can't remember.
<input type="submit" value="Search"> button and place a graphic outside the <form> tags. On this graphic you can use:
href="javascript:document.yourFormName.submit()" This choice gives you full control over the look and feel of the image.
I've also noticed that your form:
<form action="/cgi-sys/entropysearch.cgi" target=searchwindow>) name="yourFromName" attribute... you need this. HTH!
Thanks for all the fantastic input and advise..... I`ll give it a shot...!!!!
Thank you again, I appreciate it very much...!!! :)
Village Idiot...