$(document).ready(function(){ /*1-首页*/ function adhr(adhrs){ $(adhrs).hover(function(){ $(this).addClass("act"); },function(){ $(this).removeClass("act"); }) } $(".hdcs-link p").hover(function(){ $(this).find("i").stop().animate({width:"100%"},300); },function(){ $(this).find("i").stop().animate({width:"0"},200); }) var ishava=0; $(".hdcs").hover(function(){ var aa=$(this).find(".hdcs-show a").hasClass("act"); if(aa==true){ ishava=1; }else{ ishava=0; } var aa=$(this).find(".hdcs-show a").addClass("act"); $(this).find(".hdcs-hide").filter(':not(:animated)').slideDown(300); },function(){ if(ishava==0){ var aa=$(this).find(".hdcs-show a").removeClass("act"); } $(this).find(".hdcs-hide").slideUp(200); }) $(".brp-gd ul").css({width:355*$(".brp-gd ul li").length}); var time=setInterval(xxd,3000); function xxd(){ $(".brp-gd ul").stop().animate({left:"-355px"},1000,function(){ $(this).css({left:"0"}).find("li:first").appendTo(this); }); } $(".brp-gd ul li").hover(function(){ clearTimeout(time); },function(){ time=setInterval(xxd,4000); }) $(".it-list li").hover(function(){ $(this).find("a").stop().animate({top:"0"},400); },function(){ $(this).find("a").stop().animate({top:"10px"},300); }) $(".ihg a").hover(function(){ $(this).find(".ihg-hx i").stop().animate({width:"50px"},400); },function(){ $(this).find(".ihg-hx i").stop().animate({width:"0"},300); }) $(".ifsrs").hover(function(){ $(this).siblings(".ifsrs").find("span").hide() $(this).find("span").show(); }) /*2关于澳门·威斯尼斯wns888入口*/ $(".aurz-imgs a").hover(function(){ $(this).find("p i").stop().animate({width:"100%",left:0},400); },function(){ $(this).find("p i").stop().animate({width:"0",left:"50%"},300); }) /*8-联系澳门·威斯尼斯wns888入口*/ $(".cufl-name input,.cufl-text textarea").focus(function(){ $(this).siblings("i").stop().animate({width:"100%"},400); }) $(".cufl-name input,.cufl-text textarea").blur(function(){ $(this).siblings("i").stop().animate({width:"0"},400); }) adhr(".cufl-st input"); /*7-招聘*/ $(".pums-show").click(function(){ if(!$(this).find("a").hasClass("act")){ $(".pums-show a").removeClass("act"); $(".pums-hide").slideUp(200); $(this).find("a").addClass("act"); $(this).siblings(".pums-hide").filter(':not(:animated)').slideDown(300); } }) $(".inrk-top a").click(function(){ $("html,body").stop().animate({scrollTop: 0},"slow"); }) $(".inrk-phone a").hover(function(){ $(this).find("p").stop().animate({width:"200px"},400); },function(){ $(this).find("p").stop().animate({width:"0"},300); }) $(".inrk-wh a").hover(function(){ $(this).find("p").filter(':not(:animated)').slideDown(300); },function(){ $(this).find("p").slideUp(200); }) $(".cufl-st").click(function(){ var formData=$(".cu-form").serialize(); $.post(root + "/H/Message/add",formData,function(data){ console.log(data.data); if (data.status=='1'){ layer.alert(data.info,{icon:1}); $(':input','.cu-form') .not(':button, :submit, :reset, :hidden') .val('') .removeAttr('checked') .removeAttr('selected'); }else{ layer.alert(data.info,{icon:0}); } }, "json"); }) $(".dpyb a").click(function(){ var cid=$(this).parents(".dpyb").attr('cid'); $.post(root + "/H/Ajax/hits",{cid:cid},function(data){ if(data.status==1){ $(".dpyb-title i").html(data.data+'次下载'); }else{ console.log(data.info); } }, "json"); }) })