PageSourceSearch

http://www.xuanzongguan.com/statics/assets/common/js/common.js

js xuanzongguan.com collected 2026-10-04 12:45:53 UTC 3,680 bytes, 131 lines download raw bytes

1// JavaScript Document
2
3$(document).ready(function() {
4	/*导航下拉二级菜单*/
5	$(".nav li").hover(function(){
6			$(this).addClass("on").siblings().removeClass();
7			$(this).find(".subnav").show();
8			$(this).siblings().find(".subnav").hide();
9		},function(){
10			$(this).removeClass();
11			$(".subnav").hide();
12		})
13	
14	/*导航悬浮*/
15	var topNavH=$(".topNav").height();
16	var header=$(".header")
17	$(window).scroll(function(){
18		if($(this).scrollTop()>topNavH){ 
19			header.addClass("headFix"); 
20		} 
21		else{ 
22			header.removeClass("headFix"); 
23		} 
24	})
25	
26	/*登陆框*/
27	$(".loginTab li").click(function(){
28		$(this).addClass("on").siblings().removeClass();
29		$(".login .logbody").eq($(this).index()).show().siblings().hide();
30	});
31	$(".loginbox input").each(function(){
32		var iptvalue=$(this).val();
33		$(this).focus(function(){
34			if(this.value==iptvalue){
35			$(this).val("");}
36		}).blur(function(){
37			if(this.value == ""){
38			$(this).val(iptvalue);}
39		});
40	})
41	
42	
43	//焦点图
44    $(".focus").slide({ mainCell: ".picroll",titCell: ".pictab", titOnClassName: "on", effect: "leftLoop", autoPlay: true, autoPage: true, vis: 1, scroll: 1, interTime: 5000,  delayTime: "300" });
45	
46	//框
47	$(".boxList li").hover(function(){
48		$(this).addClass("on");
49	},function(){
50		$(this).removeClass("on");	
51	});
52	
53	//分类切换
54    $('.comtitle ul').each(function () {
55        var t = $(this).children('li');
56        t.click(function () {
57            var m = $(this).addClass('on');
58            m.siblings().removeClass('on');
59            if (m.parent().parent().siblings('.boxList').length > 0) {
60                m.parent().parent().siblings('.boxList').children("ul").hide().eq(t.index(this)).show();
61            }
62			else
63			{
64				m.parent().parent().siblings('.boxList').children("ul").hide().eq(t.index(this)).show();
65			}
66			if($(".sidenav ul").length==1){
67				$(".sidenav li").eq($(this).index()).addClass("on").siblings().removeClass("on");
68			}
69			if($(".sidenav ul").length>1){
70				$(".sidenav ul").eq($(this).parents(".wrap").index()-2).find("li").eq($(this).index()).addClass("on").siblings().removeClass("on");
71            }
72        }).eq(0).trigger("click");
73    });
74	
75	$(".hTitle li").click(function(){
76		$(this).addClass("on").siblings().removeClass("on");
77		$(".newslistBox ul").eq($(this).index()).show().siblings().hide();
78	}).eq(0).trigger("click");
79	
80	$(".sidenav li").click(function(){
81		$(this).addClass("on").siblings().removeClass("on");
82		$(".boxList ul").eq($(this).index()).show().siblings().hide();
83
84		if($(".sidenav ul").length==1){
85			$(".comtitle li").eq($(this).index()).trigger("click");
86		}
87		else{
88			$(".yuyue").eq(($(this).parents("ul").index()+1)/2-1).find(".comtitle").find("li").eq($(this).index()).trigger("click");
89		}
90				
91	}).eq(0).trigger("click");
92	
93	
94	
95	
96	/**
97	 * 获取地址栏的参数
98	 * @return {[string || object]}
99	 */
100	function getParams(f) {
101		for (var a = [], d = location.search.substring(1).split("&"), e = d.length, g = []; e--;) g = d[e].split("="), a[g[0]] = unescape(g[1]);
102		return f ? a[f] : a
103	};
104	
105	var diji = parseInt(getParams("id")) || 1;
106	(function(x) {
107		$(".sidenav li").eq(x-1).trigger("click");
108	})(diji);
109	
110})
111
112var number=8; //定义条目数
113
114function LMYC() {
115var lbmc;
116    for (i=1;i<=number;i++) {
117        lbmc = eval('LM' + i);
118        lbmc.style.display = 'none';
119    }
120}
121 
122function ShowFLT(i) {
123    lbmc = eval('LM' + i);
124    if (lbmc.style.display == 'none') {
125        LMYC();
126        lbmc.style.display = '';
127    }
128    else {
129        lbmc.style.display = 'none';
130    }
131}

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.