html
head
script type="text/javascript"
var d = document;
var mk = new Array(
'red','span style="color:red;"',
'/red','/span',
'big','span style="font-size:22pt;"',
'/big','/span',
'zhuo','span style="font-style:oblique;"',
'/zhuo','/span',
'next','brbr'
);
function mark() {
var t = new String(d.body.innerHTML);
for(i=0;imk.length;i+=2) t = t.replace(new RegExp(mk[i], 'gi'),mk[i+1]);
d.body.innerHTML = t;
}
/script
/head
body onload="mark();"
redzdzhuo/red
next
bigzdzhuo/big
next
zhuozdzhuo/zhuo
/html