那个哥哥帮忙看看这里面的密码是怎么判断的呀?是生成的随机密码么?
程序代码:
<script type="text/javascript"> if('' != null & '' != '') { alert("对不起,您的密码错误,正确密码是【"+''+"】,请重新再玩!"); } </script> <script language='javascript'> //document.oncontextmenu=function(){return false;}; </script> <script language="javascript"> var xmlHttp; function createXMLHttpRequest(){ if(window.XMLHttpRequest){ xmlHttp=new XMLHttpRequest(); } else{ try{ xmlHttp=new ActiveXObject("XMsxml2.XMLHTTP"); }catch(e){ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } } function formSubmit(){ var subPassword = document.getElementById("password").value; //alert(subPassword); var url = "showPage.action?password="+subPassword; createXMLHttpRequest(); xmlHttp.onreadystatechange = handleStateChange; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function handleStateChange(){ if(xmlHttp.readyState == 4){ if(xmlHttp.status==200){ showMsg(); } } } function showMsg(){ alert(xmlHttp.responseText); var status = xmlHttp.responseXML.getElementsByTagName("status"); var results = xmlHttp.responseXML.getElementsByTagName("value"); alert(status.item(0)); window.location.reload(); } </script>