PDA

View Full Version : Google search box


leftie
07-17-2008, 07:42 PM
Hi, i've looked and i can't find it. Could someone please tell me where to find the hack where a google search box is on every page such as the example attached.
Thanks.

Shazz
07-17-2008, 07:47 PM
That seems like a custom adsense search something you would add near your navbar template


<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000">
<div class="cse-branding-form">
<form action="http://www.google.com/cse" id="cse-search-box" target="_blank">
<div>
<input type="hidden" name="cx" value="partner-pub-1699245511152881:s9hu62t33yo" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="30" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
</div>
<div class="cse-branding-logo">
<img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" />
</div>
<div class="cse-branding-text">
Custom Search
</div>
</div>

leftie
07-17-2008, 08:07 PM
Thanks shazz, i'll try it out.

--------------- Added 1216329471 at 1216329471 ---------------

This works a treat. Code copied to bottom of navbar template.

Thank you shazz.

--------------- Added 1216331866 at 1216331866 ---------------

Hmmm is there any way so that the backround colour defaults to the style that you are using. It is just a light bar going across the page no matter if you have a dark style.