Tuesday November 12, 2002
And then he added search highlighting I've added a pretty cool javascript library called searchhi to this site.
The searchhi JavaScript library is a way of automatically highlighting words on a page when that page was reached by a search engine. In essence, if you search, for example, Google for some words, and then follow a link from the search results to a searchhi enabled page, the words you searched for will be highlighted on that page. Pretty neat, huh?
To add it to your site, simply copy the searchhi library to
somewhere on your web server, and then include it in every page you
want this to work on by adding the following line somewhere in the
header:
<script src="searchhi.js"
type="text/javascript"><script>
Then add, somewhere in your stylesheet, something like span.searchword {background-color: yellow; color: inherit}. I chose color: black since some colors in my menu are white, and white on yellow doesn't look so good.
Posted in The Web
at Nov 12 2002, 12:31:08 PM MST
Add a Comment
Search This Site
Recent Entries
- 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
- PhoneGap for Hybrid App Development