- Aug 25 Wed 2010 16:41
-
ZEND FRAMEWORK
- Aug 24 Tue 2010 17:21
-
APPT亞太之星撲克大賽
- Aug 24 Tue 2010 11:07
-
[jQuery] HIGHLIGHT關鍵字
轉自
--
highlight: JavaScript text higlighting jQuery plugin
Posted 2007-09-15 in JavaScript by Johann.
Text higlighting is part of DynaCloud – where tags/keywords are automatically highlighted once they’re clicked – so I took that code and made it a stand-alone JavaScript text highlighting jQuery plugin.
Demo
Each of the links will highlight the corresponding word.
Remove highlights again.
Usage
Add highlight
Download jquery.highlight-3.js (2 KB) and add it to your page after jQuery. A YUI compressed version (1 KB) is also available.
Style the highlight class
Create an entry in your style sheet for the highlight class.
.highlight { background-color: yellow }
Highlight terms
Call the highlight function with the text to highlight. To highlight all occurrances of “bla” (case insensitive) in all li elements, use the following code:
$('li').highlight('bla');
Remove highlighting
The highlight can be removed from any element with the removeHighlight function. In this example, all highlights under the element with the ID highlight-plugin are removed.
$('#highlight-plugin').removeHighlight();
Changelog
- 2009-02-22: Bugfix for one or two strange problems with IE. Also made API easier to use.
- 2008-06-04: Bugfix for incorrect DOM normalization. Thanks Georgy.
- 2007-09-15: Initial release.
- Aug 23 Mon 2010 11:39
-
台北當代藝術館
- Aug 21 Sat 2010 15:55
-
小管家 ─ 財務自由之路
- Aug 18 Wed 2010 14:53
-
最近入手的影像處理軟體
http://www.adobe.com/tw/products/photoshoplightroom/features/?view=topnew
PhotomatixPro3
- Aug 17 Tue 2010 15:34
-
[轉] 讓ADSL開機後自動連線上網
- Aug 17 Tue 2010 15:21
-
[轉] 如何讓電腦開機後自動登入XP?

轉字 http://www.lhu.edu.tw/i/teach-online/xp_autologin.htm
http://support.microsoft.com/kb/315231/zh-tw
http://chengbin.pixnet.net/blog/post/23818889
- Aug 17 Tue 2010 14:51
-
BOKU
http://www.pico.bz/top.html

