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.