| « prev next » | ||
Google is innovaite. They allow my to put Google result inside my own page. This feature was released early August, so I can take advantage of this offer.
Let me write down the parameters of this configuration. Please note: This entry is archived under "backstage " and is intended to be read only by me and people who are interested in how this site works.
Search Type: Google WebSearch + SiteSearch
Enter up to three URLs for SiteSearch: home.wangjianshuo.com
Length of text box: 20 characters
Customize the type of search results I get to my site content: Yes
Choose a profile: articles
Site Language: English
Opening of search results page: Open results within my own site
Enter URL where search results will be displayed: http://home.wangjianshuo.com/archives/20060120_search_this_site.htm
Your site encoding: ISO-8859-1
Search Results Style: Seaside
Use SafeSearch: Yes
Custom Channel: Search
Search Code:
<!-- SiteSearch Google -->
<form method="get" action="http://home.wangjianshuo.com/archives/20060120_search_this_site.htm" target="_top">
<table border="0" bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
</td>
<td nowrap="nowrap">
<input type="hidden" name="domains" value="home.wangjianshuo.com"></input>
<input type="text" name="q" size="20" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search"></input>
</td></tr>
<tr>
<td> </td>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="home.wangjianshuo.com"></input>
<font size="-1" color="#000000">home.wangjianshuo.com</font>
</td>
</tr>
</table>
<input type="hidden" name="client" value="pub-8513779941474461"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="6801625507"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="safe" value="active"></input>
<input type="hidden" name="flav" value="0000"></input>
<input type="hidden" name="sig" value="NdyQdGFpJnNH_B3d"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:11"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
Search Result Code
<!-- Google Search Result Snippet Begins -->
<div id="googleSearchUnitIframe"></div><script type="text/javascript">
var googleSearchIframeName = 'googleSearchUnitIframe';
var googleSearchFrameWidth = 650;
var googleSearchFrameHeight = 1300;
var googleSearchFrameborder = 0 ;
</script>
<script type="text/javascript"
src="http://www.google.com/afsonline/show_afs_search.js">
</script>
<!-- Google Search Result Snippet Ends -->
Posted by Jian Shuo Wang at August 20, 2006 2:53 PM
Copyright: You are free to redistribute this work, as long as you keep this disclaimer
and this link: http://home.wangjianshuo.com/archives/20060820_put_google_search_into_inside_my_site.htm
It's cool they now actually allow you to put the results in your own site, that way visitors can still remain on your own website while they use google to search your site.
I am wondering.. this part: value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF etc etc... I'm not entirely sure but is that for the colors? It looks like these are hex color codes.. I it would be shameful if the colors were not adjustable to fit in someones site exactly as they have their layout.
But still, if someone has some coding knowledge in asp, php or some other scripting language with databases and such, I would suggest they made their own search engine for their pages.. I think it could look prettier :)
Posted by: Jie Lun on August 21, 2006 9:38 AMvery good ,thanks ,your enlish is very good ,i will study from you ,and thanks again,
from now i will come the page every day .
Posted by: mzty999 (external link) on August 24, 2006 10:41 AMVery interesting, I tried to implement this code.. changing obvious permaeters but results always loaded in your pages! I searched google to see where this development was documented, but could not find it. URL?
Posted by: Richard Strauss on September 2, 2006 4:01 AMAs i konwn, google will pay for you if someone uses the "Google Search Bar"?
Posted by: Steven on September 3, 2006 1:01 PMIts Cool and Nice. I will try to implement it.
Posted by: Stephen (external link) on September 4, 2006 3:40 AMThanks for that codes, but i cant understand can you send me the codes that running? please.. because i need this for my theasis...
I hope you reply,,,
I need in Zip file..
Thanks for people who send me the codes..
Gud Luck to Us...
God Bless....
Posted by: abel on November 7, 2006 10:46 AMthis site contain music for na3im lahe5 and 14 azar and nice pic to barca .... visit it
Posted by: EHAB AL3ERNI (external link) on April 12, 2007 4:11 PMI added the code and changed all the obvious stuff and when I try to search it says FORBIDDEN Your client does not have permission to get URL /custom? What do I do?
Posted by: john C Whitlock (external link) on January 30, 2008 10:23 AMQuestions about and examples showing this code on knowbrainers.com.
Posted by: KnowBrainers on February 6, 2008 9:25 AMplease i want to put google search box om site.can you teach me how to put it.
Posted by: ejike (external link) on April 22, 2008 11:12 AM