Sunday November 10, 2002
Add a Google Search to your Site I got the idea from Dave and now I've implemented it on this site. To add one to your site, copy and paste the following code and adjust the site URL accordingly. NOTE: This is the XHTML Strict version, if you want a Transitional version, view source on Dave's site.
<form id="searchForm" method="get" action="http://www.google.com/search"
style="margin: 0; padding: 0" onsubmit="search()">
<input type="text" name="q" size="20" maxlength="255"
value="search this site" style="font-size: 11px"
onfocus="this.value=''" />
<input type="submit" name="sa" value="go"
style="font-size: 11px; padding: 2px; line-height: 1" />
</form>
<script type="text/javascript">
<!--
function search() {
form = document.getElementById('searchForm');
form.q.value = form.q.value + " site:www.raibledesigns.com";
form.submit();
}
//-->
</script>
Posted in Roller
at Nov 10 2002, 07:45:42 AM MST
Add a Comment
Comments:
Search This Site
Recent Entries
- Secure JSON Services with Play Scala and SecureSocial
- My What's New in Spring 3.1 Presentation
- Twitter's Open Source Summit: Bootstrap 2.0 Edition
- Refreshing AppFuse's UI with Twitter Bootstrap
- 2011 - A Year in Review
- Upgrading AppFuse to Spring Security 3.1 and Spring 3.1
- What have I been working on at Taleo?
- Our Engaging Trip to Paris and Antwerp
- My HTML5 with Play Scala, CoffeeScript and Jade Presentation from Devoxx 2011
- Deploying Java and Play Framework Apps to the Cloud with James Ward