123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- // JavaScript Document
- $(function(){
- //搜索
- $(".searchbtn").on('click', function(){
- $(".search").toggle();
- });
-
- //下拉
- $(".navleft ul li").click(function() {
- $(this).addClass("nxz").siblings("li").removeClass("nxz");
- });
-
- //轮播图片
- $('.my-slider').unslider({
- speed: 500,
- delay: 3000,
- autoplay:1
- });
- //切换
- $(".tabcont").eq(0).show();
- $(".tabtit a").on('click', function(){
- $(".tabcont").eq($(this).index()).show().siblings(".tabcont").hide();
- $(this).addClass('on').siblings().removeClass('on');
- });
-
- $(".tptabcont").eq(0).show();
- $(".tptabtit a").on('click', function(){
- $(".tptabcont").eq($(this).index()).show().siblings(".tptabcont").hide();
- $(this).addClass('on').siblings().removeClass('on');
- });
-
- $(".zctabcont").eq(0).show();
- $(".zctabtit a").on('click', function(){
- $(".zctabcont").eq($(this).index()).show().siblings(".zctabcont").hide();
- $(this).addClass('on').siblings().removeClass('on');
- });
-
- $(".dctabcont").eq(0).show();
- $(".dctabtit a").on('click', function(){
- $(".dctabcont").eq($(this).index()).show().siblings(".dctabcont").hide();
- $(this).addClass('on').siblings().removeClass('on');
- });
-
- $(".cztabcont").eq(0).show();
- $(".cztabtit a").on('click', function(){
- $(".cztabcont").eq($(this).index()).show().siblings(".cztabcont").hide();
- $(this).addClass('on').siblings().removeClass('on');
- });
-
- $(".zwtabcont").eq(0).show();
- $(".zwtabtit a").on('click', function(){
- $(".zwtabcont").eq($(this).index()).show().siblings(".zwtabcont").hide();
- $(this).addClass('on').siblings().removeClass('on');
- });
-
- //印象
- $('.zt').unslider({
- speed: 500,
- delay: 3000,
- autoplay:1
- });
-
- $(".footernav ul li").click(function() {
- $(this).addClass("active").siblings("li").removeClass("active");
- });
-
- //返回顶部
- var hei = $(window).height();
- $(document).scroll(function(){
- var top = $(document).scrollTop();
- if(top < hei)
- $(".fhdb").hide();
- else{
- $(".fhdb").show();
- }
-
- });
-
- $('.fhdb').on('click', function(){
- $(document).scrollTop(0);
- });
-
- // $(".bgs .xllm h4 .arrow").hover(function(){
- // $(".xlconts").stop(true,true).slideDown();
- // },function(){
- // $(".xlconts").slideUp();
- // })
- });
|