日期:2014-05-16 浏览次数:20382 次
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GB2312" />
<title>12-3 源代码的简单隐藏</title>
<script>
window.onload = function(){
var str;
str = document.documentElement.outerHTML;
document.open();
document.write("<!-- 你能看到真正的源代码吗? -->");
document.close();
document.body.innerHTML = str;
}
</script>
</head>
<body style="overflow:auto; padding:0px; margin:0px;">
<div style="font-size:14px; font-weight:bold; color:white; font-family:Arial, 宋体; background-color:#6090DA; padding:4px 10px;">
你好
<script>
dt = new Date();
document.write(",当前时间是 ");
document.write(dt.toLocaleTimeString());
</script>
</div>
</body>
</html>