home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 February
/
PCWorld_2005-02_cd.bin
/
komunikace
/
slim
/
sbsetup.exe
/
Highlight.js
< prev
next >
Wrap
Text File
|
2003-06-08
|
295b
|
10 lines
function Highlight(sKeyword,sColor)
{
var range=document.body.createTextRange();
while (range.findText(sKeyword,100000,0))
{
var sHtml=range.htmlText;
sHtml="<span style=\"background-color: "+sColor+"\"><font color=#000000>"+sHtml+"</font></span>";
range.pasteHTML(sHtml);
}
}