台中眉甲沙龍論壇

標題: parseInt [打印本頁]

作者: admin    時間: 2016-7-25 15:03
標題: parseInt
var btnindex = 0;
$(function(){ // 默認不加載圖片驗証碼,彈出框顯示時加載 if ( $('#pop_login').is(':visible') ) $('#pop_imgcode').attr('src', ''+Math.random()*5); var btn = $('.switch_btn'); $(".switch_btn").unbind("click"); $('.switch_btn').bind('click', function()var aIpt1 = $(this).parent().children('.switch_ipt'); aIpt1.each(function(index,新莊機車借款,element)$(element).hide();); if($(this).hasClass('click'))$(this).attr('title','點擊密碼不可見'); aIpt1.eq(1).show(); $(this).removeClass('click');else$(this).attr('title','點擊密碼可見'); aIpt1.eq(0).show(); $(this).addClass('click'); return false;); $('.switch_ipt').keyup(function()var va = $(this).val(); var aIpt2 = $(this).parent().children('.switch_ipt'); aIpt2.each(function(index,笑齦,element)$(element).val(va););); }); var _pop_login = { login_url: "", flash_callback: function(){ var response = FlashHelper.getFlash().GetVariable("retText"); outarr = response.split('|'); if ( parseInt(outarr[1]) > 3 ) $('#liimgcode').show(); if(outarr[0] == 'error')$("#error_tip").show().find('span').html(outarr[2]); else if ( outarr[0] == 'error_img' ) $("#error_tip").show().find('p').html('驗証碼錯誤'); else $.wjybox.hide(); if($("#app_name").val() == 'LsNews' }, login: function()var name = $("#user_name").val(); var pass = $("#user_pass").val(); var imgcode = $('#imgcode').val(); var method = 'post'; var body = "user_account="+name+"&password="+pass+"&imgcode="+imgcode+"&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, contentType);
} function lsNewsStatus(){ $.getJSON('/login_ajax.php?' + Math.random(), function(data) 筦理中心'); $('#userNickname').html(''+data.nickname+''); $('#c_type').val(2); $('#p_login,#reply_login').each(function()$(this).hide();); $('#p_logout,#reply_logout').each(function()$(this).show();); $('.nickname').each(function()$(this).html(data.nickname););); } $("#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: 'get', dataType: 'jsonp', jsonp: "callback", url: '', data: "mobile=" + $('#m_mobile').val(), success: function(json)if(json.success) $('#errorsDiv_mobile').hide(); else $('#errorsDiv_mobile').attr('class', 'innerError'); $('#errorsDiv_mobile').html(json.info); $('#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_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(){




歡迎光臨 台中眉甲沙龍論壇 (https://xzmj.com.tw/) Powered by Discuz! X3.2