PageSourceSearch

https://www.ecobioconference.com/js/nav.js

js ecobioconference.com collected 2026-10-06 21:08:02 UTC 2,038 bytes, 63 lines download raw bytes

1//导航
2	jQuery(".navlist").slide({ 
3		type:"menu",// 效果类型,针对菜单/导航而引入的参数(默认slide)
4		titCell:".nLi", //鼠标触发对象
5		targetCell:".sub", //titCell里面包含的要显示/消失的对象
6		effect:"slideDown", //targetCell下拉效果
7		delayTime:300 , //效果时间
8		triggerTime:0, //鼠标延迟触发时间(默认150)
9		returnDefault:true //鼠标移走后返回默认状态,例如默认频道是“预告片”,鼠标移走后会返回“预告片”(默认false)
10	});
11	
12//移动端导航开关
13    $("#selectBut").click(function() {
14    	$(".navm-box").slideToggle("slow");
15    	if($("#selectBut").hasClass("hd1-aon1")) {
16    		$(this).removeClass("hd1-aon1")
17    	} else {
18    		$(this).addClass("hd1-aon1")
19    	}
20    })
21    $(".nav-wrap img").click(function(){
22    	if($(this).parent().find("dl").is(":hidden")){
23    		$(this).parent().find("dl").show(500);
24    		$(this).css("transform","rotate(45deg)")
25    	}else{
26    		$(this).parent().find("dl").hide(500);
27    		$(this).css("transform","rotate(0deg)")
28    		
29    	}
30    });
31
32//搜索开关
33    $('.search').click(function(){
34		$('.search_wrap').fadeIn();
35		if($('.search').hasClass("icon-close")) {
36			$(this).removeClass("icon-close");
37			$('.search_wrap').fadeOut("slow");
38			$(this).addClass("icon-search")
39		} else {
40			$(this).removeClass("icon-search");
41			$(this).addClass("icon-close")
42		}		
43    });
44	$('.search_m').click(function(){
45		$('.search_wrap').fadeIn();
46		if($('.search_m').hasClass("icon-close")) {
47			$(this).removeClass("icon-close");
48			$('.search_wrap').fadeOut("slow");
49			$(this).addClass("icon-search")
50		} else {
51			$(this).removeClass("icon-search");
52			$(this).addClass("icon-close")
53		}		
54	});
55	
56//二级导航
57   $(".li_xlz").click(function(){
58	    $(this).parents(".main-nav>ul>li").find(".navContent").slideToggle(300);
59	    $(this).toggleClass("on").siblings().removeClass('on').find(".navContent").slideUp();
60	})
61
62
63	

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.