日期:2014-05-16 浏览次数:20341 次
function input() {
var keywords = document.getElementById("keywords").value;
var keyhref = document.getElementById("keyhref").value;
document.getElementById("txt1").innerHTML = document.getElementById("txt1").innerHTML.replace(/(keywords)/gi,"<a href=keyhref>keywords</a>");
}
function input() {
var keywords = document.getElementById("keywords").value;
var keyhref = document.getElementById("keyhref").value;
document.getElementById("txt1").innerHTML = document.getElementById("txt1").innerHTML.replace(eval("/"+keywords +"/gi"),"<a href=keyhref>keywords</a>");
}