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

26 Comments

  1. 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 :)

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

  3. Ojo Felix Segun

    August 25, 2006 at 8:32 pm

    I like what u are doing at this site

  4. 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?

  5. As i konwn, google will pay for you if someone uses the “Google Search Bar”?

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

  7. Rimon Loves Manu so much.

  8. 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….

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

  10. 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?

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

  12. – Google is my favorite …………..

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

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

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

  16. hiiiiiiiiiiiiiiiiiiiiiiiiiii

  17. This site include plenty of Photos and Videos.

    The High quality of Photo,With different size.

  18. This is our corporate philosophy which drives us towards bringing you the finest property solutions. Since 1990 “ARORA ASSOCIATE has been associated with up market properties in GURGAON. Within India, and globally, we have expanded our horizons through our unique Associate model. While representing the best of homes and offices (Lease as well as Ownership), we also have the privilege and responsibility of catering to an esteemed clientele. Their continued patronage is proof of our commitment to excellence in customer service. We aim to build an organization which provides global levels of service with local solutions.

  19. Sounds great. I think I’ll try it.

Leave a Reply

Your email address will not be published. Required fields are marked *