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 TSSJS 2010 Presentations and Summary
- What's New in Spring 3.0
- Developing Rich Web Service APIs with Java
- C++, Java and .NET: Lessons Learned from the Internet Age
- Highly Interactive Software with Java and Flex
- The Cloud Computing Continuum with Bob McWhirter
- Software Quality: The Quest for the Holy Grail?
- What's Happening in the Java World?
- Fantastic Fun in Jackson Hole
- How We Hired a Team of 10 in 2 Months