Découvrir et utiliser jQuery, la librairie javascript du XXIIème siècle

Home page > Plugins > The plugin "SearchHighlight" > The plugin "SearchHighlight" > Post a message

Post a message

Replying to:

  • The plugin "SearchHighlight"

    15 December 2009 12:45, by Isaac
    Hello, I did some changes in the plugin ...see all code : /* highlight v3 Highlights arbitrary terms. MIT license. Johann Burkard Isaac flores Added glossary feature Julio Montoya fixes for the Glossary tool to strict search */ jQuery.fn.highlight = function(pat,real_code) function innerHighlight(node, pat) var skip = 0; if (node.nodeType == 3 ) // Highlight all coincidences //var pos = node.data.toUpperCase().indexOf(pat); //Highlight strict, exact words var SearchRegExp = new RegExp("(\\b)"+pat+"(\\b)","gi"); var pos = (...)

Forum registration required

Prior to participating in this forum, you must register. Thank you for entering the personal identifier supplied to you. If you are not already registered, you must register.

[Connection] [register] [password forgotten?]

Latest comments