打不死的心态活到老。
html保护脚本不被看到
上一篇 /
下一篇 2007-08-02 15:51:06
/ 个人分类:HTMl
51Testing软件测试网R8N0~-\m6c(l4h#^一天在网上找到的:html保护脚本不被看到:以下脚本可保证在别人打开你的Html页面察看源文件时看不到任何东西
~Zf&kR}YO5M9V0
3NjCok!E)[0<html>51Testing软件测试网.V? B~;w.^Kw"Z
<head>51Testing软件测试网ZF2xw{HD@R)z
<scrīpt>51Testing软件测试网-Q3a)t1Z#rN(R
function clear() {51Testing软件测试网0g3Id O
`
Source=document.body.firstChild.data;51Testing软件测试网0Nil&G;hNN7@t}
document.open();51Testing软件测试网6jL1R#Q6ngV
document.close();51Testing软件测试网6u+JU$IBv
document.body.innerHTML=Source;51Testing软件测试网x9_8p'Ov+H-G*c
}
Kd2en5BaZ
~0 </scrīpt>51Testing软件测试网|@ H#S@
</head>
i,]-e9~6j!paZYq0<body ōnload=clear()>
k+ypD1`Sw0 Test51Testing软件测试网-yP5b:ud#W2XkU
</body>51Testing软件测试网GJ2UB8Ro
</html>
qneZ@6X
|![I"c6i [0