/** * created by ��ѩ on 2017/11/8. */ $(function(){ window.scrollreveal = new scrollreveal({reset: false, move: '50px'}); ; //�ҳ� $(".aside li").hover(function () { $(this).find(".img1").hide(); $(this).find(".img2").show() $(this).children(".ewm").show(); $(this).children(".kuzx").css({ "display": "block", "opacity": 1 }); $(this).children("div").animate({ "right": "60px" }); }, function () { $(this).find(".img2").hide(); $(this).find(".img1").show(); $(this).children(".phone_meassage").animate({ "right": "-240px" }); $(this).children(".kuzx").animate({ "right": "-127px", "display": "none", "opacity": 0 }); $(this).children(".fx").animate({ "right": "-127px" }); $(this).children(".ewm").hide(); $(this).children(".ss").animate({ "right": "-205px" }); }) $("#gotopbtn").click(function () { $('body,html').animate({ scrolltop: 0 }, 600); }) // nav $(".menu").slide({ type:"menu",// ч�����ͣ���բ˵�/����������ij�����ĭ��slide�� titcell:".nli", //��괥������ targetcell:".menu2", //titcell���������ҫ��ʾ/��ʧ�ķ��� effect:"slidedown", //targetcell����ч�� delaytime:300 , //ч��ʱ�� triggertime:0, //����ӳٴ���ʱ�䣨ĭ��150�� returndefault:true //������ߺ󷵻�ĭ��״̬������ĭ��ƶ���ǡ�Ԥ��ƭ����������ߺ�᷵�ء�Ԥ��ƭ����ĭ��false�� }); $(".navlist .nli:last-child").css({"background":"none"}) // banner $('#owl-demo').owlcarousel({ singleitem:true, lazyload: true, navigation: false, addclassactive:true, autoplay: 3000, loop:true }); $('#owl-demo1').owlcarousel({ singleitem:true, lazyload: true, navigation: false, addclassactive:true, autoplay: 3000, loop:true }); // pro $(".pro .con li").hover(function(){ $(this).find("p").stop().fadetoggle("slow") $(this).find(".model").stop().fadetoggle("slow") }) $(".pro1 .con li").hover(function(){ $(this).find("p").stop().fadetoggle("slow") $(this).find(".model").stop().fadetoggle("slow") }) //չ����һ�� $(".sidebar ul.sidemenu li a").click(function () { $(this).parent().siblings().find("ul").stop().slideup()//���ҫ�����������ȥ��������� //$(this).next("ul").slidetoggle(300); }) // ��ǰѡ��������и��ڵ㶼��ʾ����������ὣ�����li��ĭ�����.current $(".sidebar ul.sidemenu li.current").parents().show(); $(".inside .container .article .list-text1 ul li").each(function(){ var index = $(this).index() $(this).find(".num").html(index+1) }) function case1(data){ var html = data.html(); var str = html.touppercase(); data.empty().html(str); } if($(".inside .container .title h4").length>0){ case1($(".inside .container .title h4")) } $(".add11").on("click",function(){ $(".sidemenu").slidetoggle("slow") }) });