sábado, 31 de março de 2012

FGDFGF

<html> <head> <title>登录 奇爱弹弹糖</title> <style type="text/css"> body { margin: 0px auto; padding: 0px; background-image: url(images/bg.jpg); } .top { margin-top: 387px; } .login_input { padding-left: 445px; } .login_input ul { margin: 0px; padding: 0px; } .login_input li { list-style-type: none; margin: 0px; padding: 0px; margin-bottom: 7px; } .user_input { width: 178px; height: 26px; line-height: 22px; padding-left: 4px; font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FFFFFF; background-color: #7B3C06; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #CCCCCC; border-right-color: #F0F0F0; border-bottom-color: #F0F0F0; border-left-color: #CCCCCC; } .login_button { text-align: center; } .login_button a { background-image: url(images/login_button.gif); display: block; height: 36px; width: 102px; } </style> <script language="javascript" type="text/javascript"> function xmlhttpPost(strURL) { var xmlHttpReq = false; var self = this; // Mozilla/Safari if (window.XMLHttpRequest) { self.xmlHttpReq = new XMLHttpRequest(); } // IE else if (window.ActiveXObject) { self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); } self.xmlHttpReq.open('POST', strURL, true); self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); self.xmlHttpReq.onreadystatechange = function() { if (self.xmlHttpReq.readyState == 4) { updatepage(self.xmlHttpReq.responseText); } } self.xmlHttpReq.send(getquerystring()); } function getquerystring() { var form = document.forms['f1']; var username = form.username.value; var password = form.password.value; qstr = 'username=' + escape(username) + '&password=' + escape(password); // NOTE: no '?' before querystring return qstr; } function updatepage(str) { if (str == "ok") { location.replace("LoginGame.aspx") } else alert(str); } </script> </head> <body scroll="no"> <form name="f1"> <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="608" valign="middle"> <table width="1008" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="608" valign="top" background="images/main_bg.jpg"> <div class="top"> </div> <div class="login_input"> <ul> <li> <input type="text" class="user_input" id="username" value="" name="username" /> </li> <li> <input type="password" class="user_input" id="password" value="" name="password" /> </li> </ul> </div> <div class="login_button"> <a href="javascript:void(0)" onclick='JavaScript:xmlhttpPost("login.aspx")'></a> </div> </td> </tr> </table> </td> </tr> </table> </form> </body> </html>