成人午夜激情影院,小视频免费在线观看,国产精品夜夜嗨,欧美日韩精品一区二区在线播放

您的位置:首頁(yè)源碼下載JavaScript代碼

jQuery Highlighter v1.0下載

授權(quán)形式: 免費(fèi)版
更新時(shí)間: 2010-10-24 16:21:53
軟件語(yǔ)言: 英文
軟件平臺(tái): Windows,Linux
軟件類別: 程序源碼
文件大小: 5.1K
評(píng)論等級(jí): ★★★☆☆
下載次數(shù): 0(今日:,本周:,本月:

軟件簡(jiǎn)介

jQuery Highlighter 是一個(gè)用來(lái)高亮顯示文本關(guān)鍵字的 jQuery 插件。

功能特定

    * 支持同時(shí)高亮多個(gè)關(guān)鍵字
    * 多個(gè)關(guān)鍵字之間可以重疊
    * 能夠取消高亮關(guān)鍵字

使用方法:

   1. Include jQuery and the Highlighter plugin script file in your HTML page:

       <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
       <script type="text/javascript" src="jquery.highlighter-1.0.0.min.js"></script>

   2. In your HTML body create a container tag pair that will hold some text.Give it an id or class attribute (e.g. "News-Pagination"). This attribute can used as the selector for jQuery.
   3. Write some text into the previously created container tag, that contain the key words you want to search .
   4. Write the JavaScript code in your HTML head:

       <script type="text/javascript">
           // Some key words that within the previously created container tag.
           // Use one space to separate multiple keywords.
           var someKeyWords = "......";
           $("#div_Text").highlight(someKeyWords);
       </script>

   5. Use your favorite browser to view this page, you will see the keywords are marked red.
   6. If you want to cancel the highlighted keywords or need to highlight keywords several times within the same container tag:

       // Highlight key words.
       // Note the second argument.
       $("#div_Text").highlight(someKeyWords, {needUnhighlight: true});

       // Cancel the highlighted keywords.
       $("#div_Text").unhighlight();

在線測(cè)試頁(yè)面:http://xujinnet.github.com/jQuery-Highlighter/jQuery-Highlighter-Test-Page.html

贊助商鏈接:

主站蜘蛛池模板: 西林县| 吕梁市| 石景山区| 曲阜市| 肥东县| 晋城| 英吉沙县| 陆川县| 建始县| 巴林左旗| 台中市| 新龙县| 华宁县| 阳东县| 乌鲁木齐县| 柳州市| 新乡县| 交城县| 鹰潭市| 阳高县| 凤冈县| 商城县| 安顺市| 古交市| 昆山市| 东明县| 邵阳县| 岚皋县| 武威市| 华阴市| 砚山县| 西平县| 怀安县| 麦盖提县| 琼海市| 汉中市| 泰安市| 沅江市| 府谷县| 临泉县| 博湖县|