$(function(){ //totop $(document).on("click", ".a-top", function(){ $("html,body").animate({scrollTop: 0}); }); $(".ind_yewulist a").mouseover(function(){ $(this).addClass("big"); $(this).siblings("a").addClass("small"); }); $(".ind_yewulist a").mouseleave(function(){ $(this).parent().find("a").removeClass("small"); $(this).parent().find("a").removeClass("big"); }); $(".pageNext").click(function(){ $.fn.fullpage.moveSectionDown(); }) //登录切换 $(".login_form .tab a").mouseover(function(){ $(this).addClass('on').siblings().removeClass('on'); var index = $(this).index(); number = index; $('.login_form .content li').hide(); $('.login_form .content li:eq('+index+')').show(); }); //发送验证码 var countdown = 60; $('#numbtn').on('click',function(){ var obj = $("#numbtn"); settime(obj); }) function settime(obj) { if (countdown == 0) { obj.attr('disabled', false); obj.html("发送验证码"); countdown = 60; return; }else{ obj.attr('disabled', true); obj.html("重新发送(" + countdown + ")"); countdown--; } setTimeout(function () { settime(obj) }, 1000) } $("#zlphone").click(function(){ $("#edit_phone").show(); }); $("#zlemail").click(function(){ $("#edit_email").show(); }); $("#zlpassword").click(function(){ $("#edit_password").show(); }); $(".member_edit_bg .close").click(function(){ $(".member_edit_bg").hide(); }); });