show_userinfo.innerHTML=" 登陸- 注冊";var WebUrl="/"; function LogOut(){ $.post(WebUrl+"e/member/AjaxLog/?enews=exit",function(msg){ if(msg=='exitsuccess'){ $("#show_userinfo").html(' 登陸- 注冊'); $('#shortinfo').html(" 登陸- 注冊"); alert('退出成功!'); } }) } function AjaxReg(){ //self.location=WebUrl+'e/member/register/index.php?groupid=1'; AjaxLog(); switchTag('_xka','_xka_list',2,2,'conxk1','conxk2'); } function CheckReg(key,value){ if(value!=''){ var data = {},key=key; data['enews']='register'; data[key]=value; if(key=='repassword'){ var pass=$("#password").val(); //獲取密碼輸入框的值 data['password']=pass; } $.ajax({ type:"POST",url:WebUrl+"e/member/AjaxLog/",dataType:"html",data:data ,beforeSend:function(){ $('.'+key).html(' ') } ,success:function(msg){ if(!msg){ $('.'+key).html(''); //這裏的代碼已函數checkpass()裏麵的一段代碼相對應! //checkpass('all'); }else{ //alert(msg); $('.'+key).html(' '+msg+''); //checkpass('all'); return false; } } }); }else{ if(key='username'){ var red='用戶名'; } if(key='password'){ var red='密碼'; } if(key='repassword'){ var red='重複密碼'; } if(key='email'){ var red='郵箱'; } $('.'+key).html(' '+red+'不允許為空!'); } } function checkpass(all){ var username=$("#username").val(); var pass=$("#password").val(); var pass2=$("#repassword").val(); var email=$("#email").val(); var checkin=$("#checkin").is(':checked'); if(username!='' && pass2!='' && pass==pass2 && checkin==true && email!=''){ $('#Reg-sub').removeAttr('disabled'); $('#checkreg').show().html('全部填寫正確!'); }else{ document.getElementById("Reg-sub").disabled = true; $('#checkreg').hide(); if(all){ $('#checkreg').show().html(' 有必選項沒填寫正確!'); } } } (function($){ $.fn.extend({ leanModal:function(options){ var defaults={ top:100,overlay:0.5,closeButton:null }; var overlay=$("
"); $("body").append(overlay); options=$.extend(defaults,options); return this.each(function(){ var o=options; $(this).click(function(e){ var modal_id=$(this).attr("href"); $("#lean_overlay").click(function(){ close_modal(modal_id) }); $(o.closeButton).click(function(){ close_modal(modal_id) }); var modal_height=$(modal_id).outerHeight(); var modal_width=$(modal_id).outerWidth(); $("#lean_overlay").css({ "display":"block",opacity:0 }); $("#lean_overlay").fadeTo(200,o.overlay); $(modal_id).css({ "display":"block","position":"fixed","opacity":0,"z-index":10022,"left":50+"%","margin-left":-(modal_width/2)+"px","top":o.top+"px" }); $(modal_id).fadeTo(200,1); e.preventDefault() }) }); function close_modal(modal_id){ $("#lean_overlay").fadeOut(200); $(modal_id).css({ "display":"none" }) } } }) })(jQuery); function switchTag(tag,content,k,n,stylea,styleb){for(i=1;i<=n;i++){if(i==k){document.getElementById(tag+i).className=stylea;document.getElementById(content+i).className="showbox"}else{document.getElementById(tag+i).className=styleb;document.getElementById(content+i).className="hidden"}}}; url=window.location.href /*登錄框代碼*/ document.writeln("
"); document.writeln("
"); document.writeln(" ×"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln(" "); document.writeln("
"); document.writeln(""); document.writeln("
"); document.writeln(" 記住我 忘記密碼?"); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln(""); document.writeln(""); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln("
"); document.writeln("
    "); document.writeln("
  • "); document.writeln("
"); document.writeln("
    "); document.writeln("
  • "); document.writeln("
"); document.writeln("
    "); document.writeln("
  • "); document.writeln("
"); document.writeln("
    "); document.writeln("
  • "); document.writeln("
"); document.writeln(""); document.writeln("
    "); document.writeln(" "); document.writeln("
"); document.writeln("
    "); document.writeln("
  • 我已閱讀並接受《服務條款
  • "); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln(" "); function AjaxLog(){ document.getElementById('AjaxLog').click(); switchTag('_xka','_xka_list',1,2,'conxk1','conxk2');}$('.close').click(function(){ $("#lean_overlay").fadeOut(200);$("#js_login").hide(); });
Baidu
map