







Do you want to add a new Google search on your blog? It's pretty simple. Just follow the steps defined here and you will be good. :<form id="cse-search-box" action="http://myblogname.blogspot.com">
<div>
<input value="partner-your-pub-id" name="cx" type="hidden"/>
<input value="FORID:10" name="cof" type="hidden"/>
<input value="ISO-8859-1" name="ie" type="hidden"/>
<input name="q" size="71" type="text"/>
<input value="Search" name="sa" type="submit"/>
<a href="http://myblogname.blogspot.com/?q=&sa=Search#1099">Clear Search</a>
</div>
</form>
<script src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en" type="text/javascript"></script>
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 800;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script src="http://www.google.com/afsonline/show_afs_search.js" type="text/javascript"></script>
If you want to have radio buttons to toggle between searching web or your blog, you can append this code just below the search button code.
<font size="-1">
<br/><input checked value="" name="sitesearch" type="radio"/> Entire Web
<input value="mycomponent.blogspot.com" name="sitesearch" type="radio"/> This Blog <br/>
</font>
0 comments:
Post a Comment
Leave your opinion here. Or let me know if you face a problem ...I'll try to get back to you as soon as I can.