HTA - OnKeyDown
Posted reboost
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HTA - OnKeyDown相关的知识,希望对你有一定的参考价值。
<html> <HEAD> <TITLE>The Peoples Network in Portsmouth Terms and Conditions of Use</TITLE> <BODY BGCOLOR="#004e98" TEXT="FFFFFF" LINK="FFFFFF" ALINK="FFFFFF" VLINK="FFFFFF"> </HEAD> <hta:application showintaskbar = "yes" caption = "no" border = "thick" contextmenu = "no" innerborder = "no" scroll = "no" singleinstance = "yes" resizable = "yes" windowstate = "maximize" > <SCRIPT LANGUAGE="VBScript"> Sub LogOnScript Set wshShell = CreateObject("WScript.Shell") wshshell.run "TASKKILL /F /IM mshta.exe" Set wshshell = nothing End Sub </SCRIPT> <SCRIPT LANGUAGE="javascript"> document.write(" ") function No_AltF4() { var tecla=window.event.keyCode; var alt=window.event.altKey; if (alt && tecla==115) {event.keyCode=116; event.returnValue=false;} if (tecla==91) {event.keyCode=116; event.returnValue=false;} } </SCRIPT> <BODY onKeyDown="javascript:return No_AltF4();"> <CENTER> <TABLE cellSpacing=2 cellPadding=2 width="900" border=0> <TBODY> <TR bgColor=#004e98> <TD> <CENTER> <IMG src="Logo.jpg"> </CENTER> <FONT face=Arial color=#ffffff size=5> <P Align="Center"><B>The Peoples Network in Portsmouth</B></P> <P Align="Center"><B>Terms and Conditions of Use</B></P> </FONT> <CENTER> <input id=runbutton class="button" type="button" value="Accept" name="Accept" onClick="LogOnScript"> </CENTER> </BODY> |
以上是关于HTA - OnKeyDown的主要内容,如果未能解决你的问题,请参考以下文章