It uses an array of keywords to search and when found mark them like google highlight search keywords e.g jquery this code searches in complete body tag if you like to do search at a specific place then replace "body" with any of the jquery selector that suits your situations. <script type="text/javascript">
function HighlightKeywords(keywords)
{
var el = $("body");
$(keywords).each(function()
{
var pattern = new RegExp("("+this+")", ["gi"]);
var rs = "<span style='background-color:#FFFF00;font-weight: bold;background-color:#FFFF00;'>$1</span>";
el.html(el.html().replace(pattern, rs));
});
}
</script>
<script type="text/javascript">
HighlightKeywords(["got", "the"]);
</script>