如何不显示代码效果显示文本

来源:百度知道 编辑:UC知道 时间:2024/05/07 04:58:19
我在博客上插入钟表的代码,我想让效果和代码的文本都显示应该怎样做?
我看别人的效果旁好像都有文本框来显示文本,是怎么弄的啊,谁能告诉我吗?
我只要这么多分了,谁能帮我一下。谢谢了。

<textarea style="width:50%;height:50%">
<a href="#" onclick="ShowModal('demo1.html',200,100)">openMsg</a>
<script>
function ShowModal(sURL,iWidth,iHeight){

window.showModalDialog(sURL, window,
"dialogWidth=" + iWidth + "px;dialogHeight=" + iHeight + "px;"+
"center=center;border=thin;help=no; menubar=no;toolbar=no;location=no;directories=no;status=no;resizable=0; scrollbars=0");
}
</script>
</textarea>
前后 加一个textarea 就 好了

我不知道