textarea框中的代码预览[网页特效] dn001 2009-06-21 08:36:05 <!--把如下代码加入<body>区域中--> <script> function look() { if(event.keyCode==123){ window.location='view-source:'+window.location.href;} if(event.keyCode==120){ window.print();} } if(document.onkeydown==null) {document.onkeydown=look; document.write("<br><br>功能键说明:<br> <FONT COLOR=red>F12</font>:查看代码.<br> <FONT COLOR=red>F9</font>: 打印本页.") } </script>