中文(简体)
<!--把如下代码加入<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>