|
<!-- 网页特效代码由[站长中国:http://www.zzChina.net]提供! --> <!-- 要实现此效果需要 1 个步骤: -->
<!-- 第 1 步: --> <!-- 把下面的代码加到<BODY></BODY>区域中: -->
<textarea id=code cols=50 rows=5></textarea><br>
<button onclick=Preview()>调试代码</button>
<button onclick='code.value=""'>清空内容</button>
<button onclick='code.select()'>全选内容</button>
<button onclick='code.value=document.documentElement.outerHTML'>查看源代码</button>
<script>
function Preview()
{
var TestWin=open('','','');
TestWin.document.open('text/html','replace');
TestWin.document.write(code.value);
TestWin.document.close();
}
</script>
|