I'm new here and I was having some trouble making a search bar for my site.
Is there a tutuorial somewhere i can get at?
I'm new here and I was having some trouble making a search bar for my site.
Is there a tutuorial somewhere i can get at?
your best bet is to use google so you dont have to manage a database..
http://www.google.ca/searchcode.html
they offer a "copy and paste the code" type of do-hickey
Ok thanks...I've cut the search bar down, but how do I get rid of the radio button and still have it direct to a google search of my site??
Here is the current code:
<FORM method=GET action="http://www.google.com/search">
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Search">
<font size=-1>
<input type=radio name=sitesearch value="matthewdlee.com" checked><br>
Oh yeah my site is www.matthewdlee.com but how do I get rid of the radio button and have the search be on my site only?
That should work.Code:<form method="GET" action="http://www.google.com/search"> <input TYPE="text" name="q" size="31" maxlength="255" value=""> <input type="submit" name="btnG" VALUE="Search"> <input type="hidden" name="sitesearch" value="matthewdlee.com"><br>
Thanks...but I still have a lil' trouble integrating it into my site.
<form id="search" action="http://www.google.com/search">
<input name="searchFor" type="text" size="10">
<input type="hidden" name="sitesearch" value="matthewdlee.com">
<a href="">search</a>
</form>
Above is how I tried to integrate it into my search bar (www.matthewdlee.com/beta if you wanna check it out)
Anyway i uploaded it so you can try it out for yourself. The problem is that it links to google's main page. And I'm not sure how to get the search link/button to work properly.![]()
ok actually i think i got it...
hmm...how can i integrate the search button tho?
<form id="search" action="http://www.google.com/search">
<input TYPE="text" name="q" size="10" maxlength="105" value="">
<input type="hidden" name="sitesearch" value="matthewdlee.com">
<a href="">search</a>
</form>
*updating site now*![]()
You have to use a button. Then you just style it like a link with css. Your code MUST look this.
Code:<form id="search" action="http://www.google.com/search"> <input name="searchFor" type="text" size="10"> <input type="hidden" name="sitesearch" value="matthewdlee.com"> <input type="submit" name="btnG" value="Search"> </form>
i believe this is against googles terms and conditions, just letting you know.
here are the terms and obligations that would apply to the subject
1.4 Appropriate Conduct. You shall not, and shall not allow any third party to: (a) edit, modify, truncate, filter or change the order of the information contained in any Results (either individually or collectively), including, without limitation, by way of commingling Results with non-Google provided search results or advertising; (b) frame any Results or Results Page; (c) display any Results in pop-up, pop-under, exit windows, expanding buttons, or animation; (d) display any Results to any third parties other than End Users; (e) minimize, remove or otherwise inhibit the full and complete display of any Results Page (including any Results); (f) directly or indirectly access, launch and/or activate the Service through or from, or otherwise incorporate the Service in, any Client Application, Web site or other means other than the Site, and then only to the extent expressly permitted herein; (g) transfer, sell, lease, syndicate, sub-syndicate, lend, or use for co-branding, timesharing, service bureau or other unauthorized purposes any Service or access thereto (including, but not limited to Results, or any part, copy or derivative thereof); (h) enter into any arrangement or agreement under which any third party pays You fees, You pay any third party fees, or either shares in any revenue payments and/or royalties for any Results; (i) directly or indirectly generate queries, or impressions of or clicks on Results, through any automated, deceptive, fraudulent or other invalid means (including, but not limited to, click spam, robots, macro programs, and Internet agents); (j) modify, adapt, translate, prepare derivative works from, decompile, reverse engineer, disassemble or otherwise attempt to derive source code from any Service or any other Google technology, content, data, routines, algorithms, methods, ideas design, user interface techniques, software, materials, and documentation; (k) remove, deface, obscure, or alter Google's copyright notice, trademarks or other proprietary rights notices affixed to or provided as a part of any Service or any other Google technology, software, materials and documentation; (l) "crawl", "spider", index or in any non-transitory manner store or cache information obtained from the Service (including, but not limited to, Results, or any part, copy or derivative thereof); (m) create or attempt to create a substitute or similar service or product through use of or access to any of the Service or proprietary information related thereto; and/or (n) engage in any action or practice that reflects poorly on Google or otherwise disparages or devalues Google’s reputation or goodwill. Further, the Site shall not contain any ****ographic, hate-related or violent content or contain any other material, products or services that violate or encourage conduct that would violate any criminal laws, any other applicable laws, or any third party rights.
Bookmarks