hail2u / jquery.highlight-search-terms
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
README.md | Wed Jun 10 04:57:37 -0700 2009 | |
| |
jquery.highlight-search-terms.js | Sat Aug 01 07:43:56 -0700 2009 | |
| |
jquery.highlight-search-terms.min.js | Sat Aug 01 02:14:14 -0700 2009 | |
| |
test.html | Wed Jun 03 18:14:53 -0700 2009 |
README.md
TITLE
jQuery Plugin: Highlight Search Terms - version 0.2
DESCRIPTION
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 class name:
$("body").highlightSearchTerms({
className: "keyword"
});
Support custom referrer pattern:
$("body").highlightSearchTerms({
referrerPatterns: [
"^http://example\.com.+[&?]query=([^&]+).*$"
]
});
LICENSE
Copyright (c) 2009 Kyo Nagashima kyo@hail2u.net
This library licensed under MIT license:
http://opensource.org/licenses/mit-license.php
