« prev next »

Put Google Search into Inside My Site

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 -->


I pasted the code into a new entry: http://home.wangjianshuo.com/archives/20060120_search_this_site.htm

by Jian Shuo Wang on August 20, 2006 under

Related Entries:
  1. Electronic Power Towers March 13, 2010
  2. Look up! The World Above! March 13, 2010
  3. Yifan's Parking Lots March 13, 2010
  4. People Started to Wait at Red Lights March 13, 2010
  5. Baggage Check in Shanghai Metro March 13, 2010
  6. This Moment, in Shanghai March 10, 2010
  7. In Market We Trust - Part II March 10, 2010
  8. ROBOCOPY D:\my Z:\ /E /Z March 10, 2010
  9. Shanghai Snows - Heavily, Shortly March 10, 2010
Comments

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 AM

very 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 on August 24, 2006 10:41 AM

I like what u are doing at this site

Posted by: Ojo Felix Segun on August 25, 2006 8:32 PM

Very 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 AM

As i konwn, google will pay for you if someone uses the "Google Search Bar"?

Posted by: Steven on September 3, 2006 1:01 PM

Its Cool and Nice. I will try to implement it.

Posted by: Stephen on September 4, 2006 3:40 AM

Rimon Loves Manu so much.

Posted by: Nur Zayed on September 26, 2006 7:15 PM

Thanks 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 AM

this site contain music for na3im lahe5 and 14 azar and nice pic to barca .... visit it

Posted by: EHAB AL3ERNI on April 12, 2007 4:11 PM

good

Posted by: latha on September 7, 2007 5:44 PM

I 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 on January 30, 2008 10:23 AM

Questions about and examples showing this code on knowbrainers.com.

Posted by: KnowBrainers on February 6, 2008 9:25 AM

- Google is my favorite ..............

Posted by: Geo on March 10, 2008 9:05 PM

mir se vini

Posted by: trimi on April 8, 2008 5:35 PM

please i want to put google search box om site.can you teach me how to put it.

Posted by: ejike on April 22, 2008 11:12 AM

hi

Posted by: sudhir on April 28, 2008 7:08 PM

hai i am very glad to meet your website if any body click my website i will get money

Posted by: rohit sarma on June 17, 2008 10:12 PM

hi
i had put google search in my site..after puting search text search goes on 2nd page..where i want to change back ground color of that page..
i dont know how to do it. becoz it comes from javasceript..

regards
yatish

Posted by: yatish on September 20, 2008 2:42 PM

hiiiiiiiiiiiiiiiiiiiiiiiiiii

Posted by: srinivas on November 5, 2008 5:48 PM

This site include plenty of Photos and Videos.

The High quality of Photo,With different size.

Posted by: kaushik Khetalpar on December 3, 2008 4:17 PM

jenis

Posted by: jenis on December 26, 2009 3:17 PM

ggg

Posted by: jenis on December 26, 2009 3:17 PM

help fpr adsence

Posted by: jenis on December 26, 2009 3:18 PM

yep

Posted by: shane on March 13, 2010 5:07 PM
Post a comment
Name:

Email Address: (will not show)

URL: (optional)

Comments:


It may take up to 30 seconds before the server returns a result. IP address recorded.
Remember my information?
<-- Please click POST only once
© 2001 - 2009 Jian Shuo Wang. All right reserved.