Created
December 30, 2009 17:58
-
-
Save anonymous/266242 to your computer and use it in GitHub Desktop.
This file contains 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
.searchtext { COLOR: #FFFFFF; FONT: 12px arial, verdana, sans-serif; font-weight: normal; } | |
.searchsitebox { | |
FONT: 12px arial, verdana, sans-serif; | |
color: #000000; | |
background-color: #FFFFFF; | |
background-image: url("../images/YourCustomBackgroundBarImage.gif"); | |
WIDTH: 120PX; | |
HEIGHT: 19PX; | |
BORDER: #000000 1px solid; | |
margin-top: 1px; | |
} |
This file contains 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
<!-- BEGIN Google Search Results --> | |
<div id="results_014474709566007599110:gncni50kmn0"></div> | |
<script type="text/javascript"> | |
var googleSearchIframeName = "results_014474709566007599110:gncni50kmn0"; | |
var googleSearchFormName = "searchbox_014474709566007599110:gncni50kmn0"; | |
var googleSearchFrameWidth = 600; | |
var googleSearchFrameborder = 0; | |
var googleSearchDomain = "google.com"; | |
var googleSearchPath = "/cse"; | |
</script> | |
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script> | |
<!-- END Google Search Results --> |
This file contains 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
map.resources :search_results, :only => :index | |
map.sitesearch '/sitesearch', :controller => :search_results |
This file contains 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
// SEARCH START | |
document.write('<form id="searchbox_014474709566007599110:gncni50kmn0" action="' + domain + '" target="_top" class="formmargin">'); | |
document.write('<input type="hidden" name="cx" value="014474709566007599110:gncni50kmn0" />'); | |
document.write('<input type="hidden" name="cof" value="FORID:10" />'); | |
document.write('<table cellpadding="0" cellspacing="0" border="0" class="searchtext"><tr><td valign="top">'); | |
document.write('<input name="q" type="text" size="15" class="searchsitebox">'); | |
document.write('</td><td valign="top">'); | |
document.write('<INPUT TYPE="image" SRC="images/search-off.gif" name="sa" width="32" height="27" border="0" onmouseover="this.src=\'images/search-on.gif\'" onmouseout="this.src=\'images/search-off.gif\'" alt="Search"><br>') | |
document.write('</td></tr></TABLE>'); | |
document.write('</form>'); | |
// SEARCH END |
This file contains 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
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="searchtext"> | |
<tr> | |
<td align="left"> | |
Search Our Site<br> | |
<script type="text/javascript"> | |
var domain = "<%= sitesearch_url %> " | |
</script> | |
<%= javascript_include_tag 'search.js' %> | |
</td> | |
</tr> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment