jquery.highlight-search-terms
jquery.highlight-search-terms copied to clipboard
jQuery Plugin: Highlight Search Terms: Highlight search terms in referrer URL from Google, Yahoo!, Bing and custom site.
jQuery Plugin: Highlight Search Terms v0.4.2
Highlight search terms in referrer URL from Google, Yahoo!, Bing and custom site.
Usage
Highlight all contents of body element:
$("body").highlightSearchTerms();
Highlight with custom tag name:
$("body").highlightSearchTerms({
tagName: "span"
});
Highlight with custom class name:
$("body").highlightSearchTerms({
className: "keyword"
});
Support custom referrer pattern:
$("body").highlightSearchTerms({
referrerPatterns: [
"^http://example\\.com.+[&?]query=([^&]+).*$"
]
});
LICENSE
MIT: http://hail2u.mit-license.org/2009