PageSourceSearch

https://f2.cri.cn/M00/4F/D3/CqgNOl0-aB2AZ27lAAAAAAAAAAA5883992.zh-360.js

js cri.cn collected 2026-09-24 07:49:36 UTC 2,988 bytes, 103 lines download raw bytes

1// JavaScript Document
2var engines = new Array("站内搜索","百度", "中国搜索", "必应");
3var searchTimer;
4function loadjs(url, callback) {
5	var head = document.getElementsByTagName("head")[0];
6	var script = document.createElement('script');
7	script.onload = script.onreadystatechange = script.onerror = function () {
8		if (script && script.readyState && /^(?!(?:loaded|complete)$)/.test(script.readyState)) return;
9		script.onload = script.onreadystatechange = script.onerror = null;
10		script.src = '';
11		script.parentNode.removeChild(script);
12		script = null;
13		callback();
14	}
15	script.src = url;
16	try {
17		head.appendChild(script);
18	} catch (exp) { }
19}
20
21function addLoadEvent(func) {
22	var oldonload = window.onload;
23	if (typeof window.onload != 'function') {
24		window.onload = func;
25	} else {
26		window.onload = function () {
27			oldonload();
28			func();
29		}
30	}
31}
32
33addLoadEvent(function () {
34	if (typeof (jQuery) == "undefined")
35		loadjs("/include/jquery-1.7.1.min.js", head13init);
36	else
37		head13init();
38});
39
40function head13init() {
41	for (var i = 0; i < engines.length; i++) {
42		$("#engine").append('<a href="#' + i + '">' + engines[i] + '</a>');
43	}
44	$("#engine a").click(function (e) {
45		$("div#selectId").attr("value", $(this).index());
46		$(".head13_search2").text(engines[$(this).index()]);
47		$("#engine").fadeOut("fast");
48		$("#q1").trigger("focus");
49		return false;
50	});
51	$(".head13_search2").click(function () {
52
53		$('.search-select-box').css('overflow','visible');
54		var ie = !!window.ActiveXObject;
55		var ie6 = ie && !window.XMLHttpRequest;
56		if (ie6) {
57
58			if ($("#engine").css("display") == "none") {
59				$("#engine").css({ 'left': '3px', 'top': '45px' }).slideDown("fast")
60				
61				// $("#engine").css({left:$(this).offset().left,top:$(this).offset().top-35}).slideDown("fast");
62			}
63			else
64				$("#engine").slideUp("fast");
65
66		}
67		else {
68
69			if ($("#engine").css("display") == "none") {
70				$("#engine").css({ 'left': '3px', 'top': '45px' }).slideDown("fast")
71				// $("#engine").css({left:$(this).offset().left,top:$(this).offset().top+15}).slideDown("fast");
72			}
73			else
74				$("#engine").slideUp("fast");
75		}
76	});
77	$("#head13login").click(function (e) {
78		if ($("#headlogin").css("display") == "none") {
79			$("#headlogin").css({ left: $(this).offset().left - 170, top: $(this).offset().top + 20 }).slideDown("fast");
80			$("input[name='username']").trigger("focus");
81		}
82		else
83			$("#headlogin").slideUp("fast");
84	});
85	$(".headlogin_close").click(function (e) {
86		$("#headlogin").slideUp("fast");
87	});
88	$(document).click(function (e) {
89        e.stopPropagation();
90		if ($(e.target).hasClass("head13_search2")) {
91			return false;
92		}
93		$("#engine").css("display") == "block" && $("#engine").slideUp("fast");
94	})
95}
96
97function loginsub(f) {
98	$("#headlogin").fadeOut("fast");
99	document.charset = 'utf-8';
100	f.submit();
101	document.charset = 'gb2312';
102	return false;
103}

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.