$(document).ready(function() { $(".slideinner").slide({ slidecontainer: $('.slideinner a'), effect: 'easeoutcirc', autoruntime: 5000, slidespeed: 1000, nav: true, autorun: true, prevbtn: $('a.prev'), nextbtn: $('a.next') }); $("#nav_con ul .aaa").mouseover(function(){ $(this).css({"background":"#fff","color":"#f00"}); $(this).children(".nac_b").show(); $(this).children("a").css({"color":"#f00"}); }) $("#nav_con ul .aaa").mouseleave(function(){ $(this).css({"background":"none","color":"#fff"}); $(this).children(".nac_b").hide(); $(this).children("a").css({"color":"#fff"}); }) var current_index=0 window.setinterval(function(){ //console.log("test") current_index++; if(current_index==$(".tgimg").length){current_index=0} $(".tgimg").addclass("hide").eq(current_index).removeclass("hide") $(".tgcontent").addclass("hide").eq(current_index).removeclass("hide") $(".tgradio").removeclass("act").eq(current_index).addclass("act") },5000); $(".tgradio").click(function(){ current_index=$(".tgradio").index(this) $(".tgimg").addclass("hide").eq(current_index).removeclass("hide") $(".tgcontent").addclass("hide").eq(current_index).removeclass("hide") $(".tgradio").removeclass("act").eq(current_index).addclass("act") }) $(".fl_img").click(function(){ current_index=current_index-1 if(current_index==-1){current_index=images.length-1} $(".news_img").attr("src",imagesuri+images[current_index]); $(".news_content").html(images_contents[current_index]); }) $(".fr_img").click(function(){ current_index=current_index+1 if(current_index==images.length){current_index=0} $(".news_img").attr("src",imagesuri+images[current_index]); $(".news_content").html(images_contents[current_index]); }) //微信 $("#a1").mouseover(function(){ $("#wx").show(); }) $("#a1").mouseleave(function(){ $("#wx").hide(); }) $("#phone").mouseover(function(){ $("#phone2d").show(); }) $("#phone").mouseleave(function(){ $("#phone2d").hide(); }) /*切换*/ $(".news_3rr h2 #qie a").click(function(){ var num1=$(".news_3rr h2 #qie a").index(this); $(".news_3rr h2 #qie a").removeclass("act").eq(num1).addclass("act"); $(".news_3rr .news_text").hide().eq(num1).show(); }) $(".news_3l h2 span").click(function(){ var num2=$(".news_3l h2 span").index(this); $(".news_3l h2 span").removeclass("act").eq(num2).addclass("act"); $(".news_3l .news_text").hide().eq(num2).show(); }) $(".hovertreescroll").scroll({ line: 1, speed: 500, timer:"", up: "but_up", down: "but_down" }); $(".videoimg:first").removeclass("hide") $(".pic>img:first").removeclass("hide") $(".text:gt(0)").removeclass("hide") $(".hovertreescroll>ul>li:first").css("color","red") $(".hovertreescroll>ul>li").click(function(){ var index = $(".hovertreescroll>ul>li").index(this) $(".hovertreescroll>ul>li").css("color","#666") $(this).css("color","red") $(".pic>img").addclass("hide").eq(index).removeclass("hide") $(".text").removeclass("hide").eq(index).addclass("hide") $(".videoimg").addclass("hide").eq(index).removeclass("hide") }) }); $(".news2 .tit1 .tab").mousemove(function(){ var num=$(".news2 .tit1 .tab").index(this); $(".news2 .list2").hide().eq(num).show(); $(".news2 .tit1 .jh0001").hide().eq(num).show(); $(".news2 .tit1 .tab").removeclass("act").eq(num).addclass("act"); }) $(".xnews2 .tit1 .tab").mousemove(function(){ var num=$(".xnews2 .tit1 .tab").index(this); $(".xnews2 .list2").hide().eq(num).show(); $(".xnews2 .tit1 .jh0001").hide().eq(num).show(); $(".xnews2 .tit1 .tab").removeclass("act").eq(num).addclass("act"); }) $(".news21 .tit1 .tab").mousemove(function(){ var num1=$(".news21 .tit1 .tab").index(this); $(".news21 .list2").hide().eq(num1).show(); $(".news21 .tit1 .jh0001").hide().eq(num1).show(); $(".news21 .tit1 .tab").removeclass("act").eq(num1).addclass("act"); }) $(".news22 .tit1 .tab").mousemove(function(){ var num2=$(".news22 .tit1 .tab").index(this); $(".news22 .list1").hide().eq(num2).show(); $(".news22 .tit1 .jh0001").hide().eq(num2).show(); $(".news22 .tit1 .tab").removeclass("act").eq(num2).addclass("act"); }) $(".news1r .tit1 .tab").mousemove(function(){ var num2=$(".news1r .tit1 .tab").index(this); $(".news1r .list1").hide().eq(num2).show(); $(".news1r .tit1 .jh0001").hide().eq(num2).show(); $(".news1r .tit1 .tab").removeclass("act").eq(num2).addclass("act"); }) // $(".news91 .tit1 .tab").mousemove(function(){ // var num2=$(".news91 .tit1 .tab").index(this); // $(".news91 .list1").hide().eq(num2).show(); // $(".news91 .tit1 .jh0001").hide().eq(num2).show(); // $(".news91 .tit1 .tab").removeclass("act").eq(num2).addclass("act"); // }) $("#big").click(function(){ $(".newsdetail p").css("font-size","16px"); }) $("#middle").click(function(){ $(".newsdetail p").css("font-size","14px"); }) $("#small").click(function(){ $(".newsdetail p").css("font-size","12px"); }) $(".toggle").toggle(function(){ $(this).children(".sublist").show(); },function(){ $(this).children(".sublist").hide(); })