//将页面中的关键字高亮显示,在body的onload中调用
function HighLight(nWord){
var orange = document.body.createTextRange();
while(orange.findText(nWord)){
orange.pasteHTML("<span style='color:red;'>" + orange.text + "</span>");
orange.moveStart('character',1);
}
}
function HighLight(nWord){
var orange = document.body.createTextRange();
while(orange.findText(nWord)){
orange.pasteHTML("<span style='color:red;'>" + orange.text + "</span>");
orange.moveStart('character',1);
}
}