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
- Jack's Mohawk
- LinkedIn Cuts 10% (a.k.a. The Journey is Over)
- Happy Birthday Abbie!
- Moving from Spring's XML to Annotations in AppFuse
- Free Maven Training in New Orleans on Election Day
- AppFuse Light ยป AppFuse, Maven Archetypes and Shared Web Assets
- Great Weekend in Montana
- Colorado Software Summit 2008 Wrapup
- RESTful Web Applications with Subbu Allamaraju
- Core Animation with Bill Dudney