PageSourceSearch

https://xxgk.henu.edu.cn/dfiles/12772/js/former/index.js

js henu.edu.cn collected 2026-10-02 05:43:29 UTC 2,372 bytes, 93 lines download raw bytes

1$(document).ready(function(){
2//下拉列表
3	
4	$("#links").change(function(){
5		var val=$("#links").find("option:selected").val();
6		window.open(val);
7	})
8	
9	$(".centerLeft ul li").mouseover(function(){
10		var cenIndex = $(".centerLeft ul li").index(this);
11		$(".centerLeft ul li").eq(cenIndex).css({"marginLeft":"15px"});
12	})
13	$(".centerLeft ul li").mouseout(function(){
14		var cenIndex = $(".centerLeft ul li").index(this);
15		$(".centerLeft ul li").css({"marginLeft":"10px"});
16	})
17// 内页折叠菜单
18function unfoldMenu(pn, cn){
19		var p = $('strong.menu-p'), c = $('div.menu-c'), cc = $('div.menu-c-current');
20		if(c.index(cn) != c.index(cc)){
21			p.removeClass('menu-p-current');
22			cc.hide(200, function(){
23				$(this).removeAttr('style').removeClass('menu-c-current');
24			})
25			pn.addClass('menu-p-current');
26			cn.show(200, function(){
27				$(this).removeAttr('style').addClass('menu-c-current');
28			});
29		}
30	}
31	
32	function menuHandle(){
33		$('strong.menu-p').click(function(){
34console.log("点击了菜单");
35			var pn = $(this), cn = pn.next();
36			unfoldMenu(pn, cn);
37		});
38	}
39	
40	menuHandle();
41
42$('#gotop').click(function(){
43     $('body,html').animate({
44			scrollTop: 0
45		},1000)
46	});
47
48// 首页滚动图
49
50$(".main_visual").hover(function(){
51	  console.log(222);
52		$("#btn_prev,#btn_next").fadeIn()
53		},function(){
54		$("#btn_prev,#btn_next").fadeOut()
55		})
56	$dragBln = false;
57	$(".main_image").touchSlider({
58		flexible : true,
59		speed : 200,
60		btn_prev : $("#btn_prev"),
61		btn_next : $("#btn_next"),
62		paging : $(".flicking_con a"),
63		counter : function (e) {
64			$(".flicking_con a").removeClass("on").eq(e.current-1).addClass("on");
65		}
66	});
67	$(".main_image").bind("mousedown", function() {
68		$dragBln = false;
69	})
70	$(".main_image").bind("dragstart", function() {
71		$dragBln = true;
72	})
73	$(".main_image a").click(function() {
74		if($dragBln) {
75			return false;
76		}
77	})
78	timer = setInterval(function() { $("#btn_next").click();}, 3000);
79	$(".main_visual").hover(function() {
80		clearInterval(timer);
81	}, function() {
82		timer = setInterval(function() { $("#btn_next").click();}, 3000);
83	})
84	$(".main_image").bind("touchstart", function() {
85		clearInterval(timer);
86	}).bind("touchend", function() {
87		timer = setInterval(function() { $("#btn_next").click();}, 3000);
88	})
89
90
91
92
93})

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.