换个标签吧,不知道对不对
<script type="text/javascript">
function replaceMessage(){
var oU=document.createElement("em");
var oUText=document.createTextNode("Javascript");
oU.appendChild(oUText);
var oB=document.getElementById("oldnode");
oB.parentNode.replaceChild(oU,oB);
}
</script>