View Full Version : trying to optimize my google custom search engine

31 Mar 2008, 11:23 PM

on my page www.news-string.com im trying to add an option to search the whole web, as well as just the news. right now i have just the news (the couple of site specified by my google custom search engine) but i want to add a button to search the whole web for user convenience. i also plan on generating revenue by connecting my engine with adsense (yes you can do that now) so i am limited into how much i can change the original code google gives me for my website)

my search engines code is:

<!-- Google CSE code begins --><form id="searchbox_007418534131034644095:d2hvpbl0arq" onsubmit="return false;"> <input type="text" name="q" size="40"/> <input type="submit" value="Search"/></form><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_007418534131034644095%3Ad2hvpbl0arq&lang=en"></script><div id="results_007418534131034644095:d2hvpbl0arq" style="display:none"> <div class="cse-closeResults"> <a>&times; close</a> </div> <div class="cse-resultsContainer"></div></div><style type="text/css">@import url(http://www.google.com/cse/api/overlay.css);</style><script src="http://www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAANbN2rOh3W6RYLzfFN2rINRTmJKn3Cjwo75pDS7hbXCm16cICzxQTtcL9yuLptxHK1egMdEdLJCAliQ&hl=en" type="text/javascript"></script><script src="http://www.google.com/cse/api/overlay.js"></script><script type="text/javascript">function OnLoad() { new CSEOverlay("007418534131034644095:d2hvpbl0arq", document.getElementById("searchbox_007418534131034644095:d2hvpbl0arq"), document.getElementById("results_007418534131034644095:d2hvpbl0arq"));}GSearch.setOnLoadCallback(OnLoad);</script><!-- Google CSE Code ends

thanks for the help!

02 Apr 2008, 11:45 AM
wrong forum i think.