1// JavaScript Document 2$(document).ready(function(){ 3openFun(); ben_lanMu(); tad(); 4}); 5 6function openFun(){ 7 banner($("#pic ul li"),$("#ben_li ul li"),"cur",1000); 8 } 9 10function banner(PicImg,PicPage,PicOn,picTime){ 11var DEMO; 12var currentIndex=0; 13var currentID=0; 14var pictureID=0; 15var len = PicImg.length; 16 17if(len > 1){ 18 19antoScroll(); 20PicPage.hover(function(){ 21 StopScrolll(); 22 currentID=$(this).attr("id"); 23 pictureID= currentID.substring(currentID.length-1); 24 PicImg.eq(pictureID).fadeIn(picTime); 25 PicImg.not(PicImg[pictureID]).fadeOut(picTime); 26 PicPage.eq(pictureID).addClass(PicOn); 27 PicPage.not(PicPage[pictureID]).removeClass(PicOn); 28},function(){ 29 currentID=$(this).attr("id"); 30 pictureID= currentID.substring(currentID.length-1); 31 currentIndex = pictureID; 32 antoScroll(); 33}); 34 35}else{ 36 PicImg.eq(0).fadeIn(picTime); 37 PicPage.eq(0).addClass(PicOn); 38 StopScrolll(); 39 }; 40 41function antoScroll(){ 42 PicPage.eq(currentIndex).addClass(PicOn); 43 PicPage.eq(currentIndex-1).removeClass(PicOn); 44 PicImg.eq(currentIndex).fadeIn(picTime); 45 PicImg.eq(currentIndex-1).fadeOut(picTime); 46 currentIndex++; currentIndex= currentIndex>=len?0:currentIndex; 47 DEMO= setTimeout(antoScroll,5000); 48} 49function StopScrolll(){ 50 clearTimeout(DEMO); 51} 52}; 53 54function ben_lanMu(){ 55 var li = $("#ben_lanMu ul li"); 56 li.hover(function(){ 57 $(this).find(".ben_lanMu_title").animate({marginTop:"-32px"}); 58 },function(){ 59 $(this).find(".ben_lanMu_title").animate({marginTop:"100px"}); 60 }); 61 }; 62 63function tad(){ 64 var li = $("#tad_title ul li"); 65 var con = $("#tad_main .tad_list"); 66 con.hide(); 67 li.eq(0).addClass("on"); 68 con.eq(0).show(); 69 li.each(function(j){ 70 $(this).click(function(){ 71 $(this).addClass("on").siblings().removeClass("on"); 72 con.eq(j).show().siblings().hide(); 73 }); 74 }); 75 }; 76 77// 78 79$(document).ready(function(){ 80 81 $("#leftsead a").hover(function(){ 82 if($(this).prop("className")=="youhui"){ 83 $(this).children("img.hides").show(); 84 }else{ 85 $(this).children("img.hides").show(); 86 $(this).children("img.shows").hide(); 87 $(this).children("img.hides").animate({marginRight:'0px'},'slow'); 88 } 89 },function(){ 90 if($(this).prop("className")=="youhui"){ 91 $(this).children("img.hides").hide('slow'); 92 }else{ 93 $(this).children("img.hides").animate({marginRight:'-143px'},'slow',function(){$(this).hide();$(this).next("img.shows").show();}); 94 } 95 }); 96 97 $("#top_btn").click(function(){if(scroll=="off") return;$("html,body").animate({scrollTop: 0}, 600);}); 98$(".index_nav .nav_down .l1").mousemove(function() { 99 $(this).addClass("xx") 100 $(this).find(".ul1").css("display", "block") 101 }) 102 $(".index_nav .nav_down .l1").mouseout(function() { 103 $(this).removeClass("xx") 104 $(this).find(".ul1").css("display", "none") 105 }) 106 $(".index_nav .nav_down .l1 ul li").mousemove(function() { 107 $(this).addClass("pp") 108 }) 109 $(".index_nav .nav_down .l1 ul li").mouseout(function() { 110 $(this).removeClass("pp") 111 }) 112}); 113 114
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.