台灣生活在線論壇

標題: 台灣大壆生設計新式建築 可360度全方位觀賞城市風景 [打印本頁]

作者: admin    時間: 2015-5-6 12:17
標題: 台灣大壆生設計新式建築 可360度全方位觀賞城市風景
var _pop_login = {
  login_url: "",
  flash_callback: function(){
    var response = FlashHelper.getFlash().GetVariable("retText");
    if(response == 'error')$("#error_tip").show(); else $.wjybox.hide();
      if($("#app_name").val() == 'LsNews') lsNewsStatus(); else pop_login_callback();
  },
  login: function()var name = $("#user_name").val();
    var pass = $("#user_pass").val();
    var method = 'post';
    var body = "user_account="+name+"&password="+pass+"&callback=callback";
    var contentType = 'application/x-www-form-urlencoded';
    var fs = FlashHelper.getFlash();
    fs.XmlHttp(_pop_login.login_url, "_pop_login.flash_callback",家事清潔, method, body,長T, contentType);
}
  function lsNewsStatus(){
    $.getJSON('/login_ajax.php?' + Math.random(), function(data) if(data.msg_c>0 && !$.cookie('top_login_msg_box_close')) $("#top_login_channel_info").show();
        $('#msg_c').text(data.msg_c);
      $('#userProfileInfo').show();
      $('#top_login_form').hide();
      if(data.is_admin) $("#top_login_is_admin").html(');
  }
  $("#email_reg").unbind("click");
  $("#email_reg").bind("click",藍光播放軟體, function(event){
    var pwdval = $('#signup_password').val();
    if(!$("#signup_agree").attr('checked')) $("#errorsDiv_e_agree").show();
      return false; else $("#errorsDiv_e_agree").hide();
    if($("#signup .innerError").css("display")=="inline")return;
    // 加密碼強度提示
    if( /^\d+$/.test(pwdval) || /^[a-z]+$/.test(pwdval) ||  /^[A-Z]+$/.test(pwdval) )if(confirm('您的密碼設寘過於簡單,為了您賬號的安全,建議您重新設寘6位以上數字和字母混合密碼,並避免密碼和暱稱、郵箱等公開信息相同。是否返回修改?'))return;
    $("#signup").submit();
  });
  $("#mobilecode").unbind("blur");
  $("#mobilecode").bind("blur", function(event){
    $.ajax({
      type: "post",
      dataType: 'jsonp',
      jsonp: 'callback',大園抽水肥,
      url: site_url.user + "/signup/checkMobileCode",
      data: "code=" + $('#mobilecode').val(),
      success: function(json)if (json.success) $('#errorsDiv_mobilecode').hide(); else $('#errorsDiv_mobilecode').show();
    });
  });
  $('#signup_m_nick_name').unbind("blur");
  $('#signup_m_nick_name').bind("blur",輪盤遊戲, function(event) {
    if ($('#signup_m_nick_name').val().indexOf(" ") != -1) $('#errorsDiv_m_nick_name').attr('class', 'innerHelp');
      $('#errorsDiv_m_nick_name').html('暱稱中不能包含空格');
      $('#errorsDiv_m_nick_name').show(); else {
      $.ajax({
        type: "post",
        url: site_url.user+"/signup/checkNickName",
        dataType: 'jsonp',
        jsonp: "callback",
        data: "nick_name=" + $('#signup_m_nick_name').val(),
        success: function(json)if(json.success) $('#errorsDiv_nick_name').hide(); else $('#errorsDiv_nick_name').attr('class', 'innerError');
            $('#errorsDiv_nick_name').html(json.info);
            $('#errorsDiv_nick_name').show();
      });
    }
  });
  $("#m_mobile").unbind("blur");
  $("#m_mobile").bind("blur", function(event) {
    $.ajax({
      type: "post",
      url: site_url.user+"/signup/checMobilePhone",
      dataType: 'jsonp',
      jsonp: "callback",
      data: "mobile=" + $('#m_mobile').val(),
      success: function(json)if(json.success) $('#errorsDiv_mobile').hide(); else $('#errorsDiv_mobile').attr('class', 'innerError');
          $('#errorsDiv_mobile').html(json.message);
          $('#errorsDiv_mobile').show();
    });
  });
  $("#signup_email").unbind("blur");
  $("#signup_email").bind("blur", function(){
    var rex = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`\~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`\~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test($(this).val());
    if($(this).val() != '' && rex ){
      $.ajax({
        type: "POST",
        url: site_url.user+"/signup/checkUserEmail",
        dataType: 'jsonp',
        jsonp: "callback",
        data: "email=" + $('#signup_email').val(),
        success: function(json)if (json.success) $('#errorsDiv_email').hide(); else $('#errorsDiv_email').attr('class', 'innerError');
            $('#errorsDiv_email').html(json.info);
            $('#errorsDiv_email').show();
      });
    } else $('#errorsDiv_email').html("請輸入正確的郵件格式");
      $('#errorsDiv_email').show();
  });
  $("#signup_nick_name").unbind("blur");
  $("#signup_nick_name").bind("blur", function(){
    if ($('#signup_nick_name').val().indexOf(" ") != -1) $('#errorsDiv_email_nick_name').attr('class', 'innerHelp');
      $('#errorsDiv_email_nick_name').html('暱稱中不能包含空格');
      $('#errorsDiv_email_nick_name').show(); else {
      $.ajax({
        type: "post",
        url: site_url.user+"/signup/checkNickName",
        dataType: 'jsonp',
        jsonp: "callback",
        data: "nick_name=" + $('#signup_nick_name').val(),
        success: function(json)if(json.success) $('#errorsDiv_email_nick_name').hide(); else $('#errorsDiv_email_nick_name').attr('class', 'innerError');
            $('#errorsDiv_email_nick_name').html(json.info);
            $('#errorsDiv_email_nick_name').show();
      });
    }
  });
  $("#signup_checkcode").unbind("blur");
  $("#signup_checkcode").bind("blur", function(){
    if($(this).val()) {
      $.ajax({
        type: "post",
        url: site_url.user+"/signup/checkCode",
        dataType: 'jsonp',
        jsonp: "callback",
        data: "checkcode=" + $(this).val(),
        success: function(json)if(json.success) $('#errorsDiv_email_checkcode').hide(); else $('#errorsDiv_email_checkcode').show();
      });
    }
  });
  $("#signup_repassword").live("blur", function()var pwd = $("#signup_password").val();
    if(pwd != $(this).val()) $("#errorsDiv_email_re_password").text("2次輸入密碼需一緻");
      $("#errorsDiv_email_re_password").show(); else $("#errorsDiv_email_re_password").hide(););
  $("#signup_m_repassword").live("blur", function()var pwd = $("#signup_m_password").val();
    if(pwd != $(this).val()) $("#errorsDiv_m_repassword").text("2次輸入密碼需一緻");
      $("#errorsDiv_m_repassword").show(); else $("#errorsDiv_m_repassword").hide(););
  $("#btn_reg").unbind("click");
  $("#btn_reg").bind('click',function(event) {
    var pwdval = $("#signup_m_password").val();
    if($("#signup_m_password").val().length < 6 )$("#errorsDiv_m_password").show();
      return false; else $("#errorsDiv_m_password").hide();
    if($("#signup_m_repassword").val() != $("#signup_m_password").val()) $("#errorsDiv_m_repassword").show();
      return false; else {
      $("#errorsDiv_m_repassword").hide();




歡迎光臨 台灣生活在線論壇 (http://bbs.lifeoftw.com.tw/) Powered by Discuz! X3.1