LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   Code to search LQ.org w/Google.com (https://www.linuxquestions.org/questions/general-10/code-to-search-lq-org-w-google-com-332876/)

t3gah 06-12-2005 06:32 PM

Code to search LQ.org w/Google.com
 
I found this out the other day for those that might be interested in making a 'homepage' for their local web browser that will search a domain you enter. You have to be online for it to work obviously.

So now you can search LinuxQuestions.org via Google.com if you use the Google.com way to search any domain. It's not the same way you search when you are a contributor here, if you know what I mean.

I forget the exact place at http://www.google.com that shows the code but I remember it's off the sitemap or help section.

I have it right here for those that don't want to bother and also have this link so you can test it > http://www.geocities.com/yodhewavhe/...ons/index.html

Code:

<!-- SiteSearch Google -->
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
border="0" ALT="Google"></A>
</td>
<td>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
<font size=-1>
<input type=hidden name=domains value="linuxquestions.org"><br><input type=radio name=sitesearch value=""> WWW <input type=radio name=sitesearch value="linuxquestions.org" checked> linuxquestions.org <br>
</font>
</td></tr></TABLE>
</FORM>
<!-- SiteSearch Google -->


rksprst 06-12-2005 08:24 PM

theres another way to do this in google, type in:
Code:

your-search-words site:domain-name.com

win32sux 06-12-2005 08:29 PM

i think he's aware of that, it's just that this code will allow you to put a google search box on your site that will search a specific website from within your website, like maybe even your own website could be searched...

t3gah 06-12-2005 08:35 PM

Quote:

Originally posted by win32sux
i think he's aware of that, it's just that this code will allow you to put a google search box on your site that will search a specific website from within your website, like maybe even your own website could be searched...

EXACTLY

That way instead of constantly typing the part the other posters help tip made you can have a fixed search engine on your website or point you local browser to an html on your local system with the code for the one site or the many sites you frequent. That way you have the best of both worlds! :)


All times are GMT -5. The time now is 04:22 PM.