- <OL>
- <LI> <input type="hidden" name="fmdo" value="login" /> </LI></OL>
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> <input type="hidden" name="dopost" value="login" />
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> <input type="hidden" name="keeptime" value="604800" />
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> <p><label>帐号:</label><input type="text" id="userid" name="userid" class="ipttxt-login" /></p>
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> <p><label>密码:</label><input type="password" id="pwd" name="pwd" class="ipttxt-login" /></p>
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> <p><label>验证码:</label><input type="text" id="vdcode" name="vdcode" maxlength="4" class="ipttxt-login" style="margin-left:0px;width:60px;" /><img src="{dede:global.cfg_cmsurl/}/include/vdimgck.php" style="margin-left:16px;cursor:pointer;vertical-align:bottom;" onclick="this.src=this.src+'?'" /></p>
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> <p style="text-indent:33px;"><a href="{dede:global.cfg_memberurl/}/resetpassword.php" target="_blank">我要找回密码</a><img src="{dede:global.cfg_templeturl/}/9view/images/btn-login.png" alt="登录" style="margin-left:18px;cursor:pointer;vertical-align:text-bottom;" id="btnLogin" /></p> </LI>
jQuery登录Ajax关键代码:
- <OL>
- <LI> //Ajax发送登录数据 </LI></OL>
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> $("#btnLogin").click(function(){
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> $(".box-panel").hide();
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> $("#login-status").show();
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> $("#loginMsg").text("正在登录……");
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> $.ajax({
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> url: '/member/index_do.php',
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> type: 'POST',
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> timeout: 3000,
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> global: false,
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> cache: false,
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> dataType:'html',
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> data: {
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> fmdo: 'login',
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> dopost: 'login',
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> keeptime: 604800,
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> userid: $("#userid").val(),
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> pwd: $("#pwd").val(),
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> vdcode: $("#vdcode").val()
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> },
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> success: function(msg){
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> if (msg == "成功登录,会员菜单可以使用了") {
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> $("#login_panel").hide();
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> $(".box-panel").show();
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> $("#login-status").hide()
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> //使用官方自带的JS检测登录状态
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> CheckLogin();
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> $("#memberMenu").bind("click",function(){
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> $("#navLogined ul").slideToggle(100);
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> });
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> }
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> else {
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> $("#loginMsg").html(msg);
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> }
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> },
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> error:function(msg){
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> $("#loginMsg").html(" <font color=red>登录时发生错误!</font><br />请联系管理员 admin@9view.cn");
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> }
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> });
- <LI style="BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: rgb(247,247,247); LIST-STYLE-TYPE: decimal; MARGIN: 0px; OUTLINE-STYLE: none; PADDING-LEFT: 10px; PADDING-RIGHT: 1em; FONT-FAMILY: 'Courier New', serif; FONT-SIZE: 12px; PADDING-TOP: 0px; background-origin: initial; background-clip: initial"> }); </LI>
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!