Created
November 2, 2010 14:15
-
-
Save gotoplanb/659656 to your computer and use it in GitHub Desktop.
code for Google Custom Search form and results as iframe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Set appropriate action URL. For WP, we're using /search/ --> | |
<form action="" id="cse-search-box"> | |
<div> | |
<input type="hidden" name="cx" value="001006011763809941815:njuofs6jfz4" /> | |
<input type="hidden" name="cof" value="FORID:10" /> | |
<input type="hidden" name="ie" value="UTF-8" /> | |
<input type="text" name="q" size="31" /> | |
<input type="submit" name="sa" value="Search" /> | |
</div> | |
</form> | |
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script> | |
<!-- Put in template that returns search results --> | |
<div id="cse-search-results"></div> | |
<script type="text/javascript"> | |
var googleSearchIframeName = "cse-search-results"; | |
var googleSearchFormName = "cse-search-box"; | |
var googleSearchFrameWidth = 600; | |
var googleSearchDomain = "www.google.com"; | |
var googleSearchPath = "/cse"; | |
</script> | |
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Is there a way to make this work with the look,feel, color scheme we've configured on the programmable search engine?