日期:2014-05-18 浏览次数:20655 次
<script src="jquery.js" type="text/javascript"></script> <script language="javascript" type="text/javascript"> function openprompt() { var temp = { stateLogin: { html: '<div style="font-size:16px; font-weight:600" id="title">注册用户请直接登录</div><span style="font-size:14px; font-weight:100"></span><table id="loginbox" border="0" cellpadding="0" cellspacing="0" style="font-weight:100"><tr style="height:30px;"><td class="bfont">用户名:</td><td align="left"><input class="txtbox" type="text" name="txtUserName" id="txtUserName" maxlength="16" style="width:130px"/><span></span></td></tr><tr style="height:30px"><td class="bfont">密 码:</td><td align="left"><input class="txtbox" type="password" name="txtUserPwd" id="txtUserPwd" maxlength="18" style="width:130px"/><span></span></td></tr><tr style="height:30px"><td></td><td align="left"><input id="CheckboxLogin" name="CheckboxLogin" type="checkbox" /><span style="font-size:12px; color:Black">记住我的登陆状态</span> </td></tr><tr><td></td><td align="left"><input id="loginId" type="button" value="登 陆" style="width:70px; height55px;text-align:center;vertical-align:middle" onclick="javascript:doLogin();"/><span style="margin-left:20px; font-size:12px;font-weight:100"><a href="index.aspx">忘记密码?</a></span></td></tr></table><br />', buttons: { 登陆: -1, 注册: 1 }, focus: 1, submit: function(v, m, f) { if (v == 0) $.prompt.close() else if (v == 1) $.prompt.goToState('stateRegiest'); //go forward else if (v = -1) $.prompt.goToState('stateLogin'); //go back return false; } }, stateRegiest: { html: '<div id="registerTitle" style="font-size:16px; font-weight:600">用户注册</div><span style="font-size:14px; font-weight:100"></span><table id="tableRegiest" border="0" cellpadding="0" cellspacing="0" style="font-weight:100"><tr><td class="bfont" style="font-weight:600">用 户 名:</td><td align="left"><input class="txtbox" type="text" name="regUserName" id="regUserName" maxlength="16" style="width:130px;"/><span></span></td></tr><tr><td></td><td align="left"><span>不超过7个汉字,或14个字节(数字和字母)</span><br /><span style="color:#836FFF;font-weight:100">使用真实姓名注册账号可获得<a href="index.aspx" style="color:#FF0000">实名认证</a></span></td></tr><tr style="height:10px;"></tr><tr><td class="bfont" style="font-weight:600">设置密码:</td