PageSourceSearch

https://www.dpmz.sk/js/menu.js

js dpmz.sk collected 2026-10-02 19:09:53 UTC 2,102 bytes, 116 lines download raw bytes

1var menu_t = [];
2var prec = {};
3var ok_ = [];
4
5function _$(a) {
6	var b = document.getElementById(a);
7	return (b ? b : document.getElementsByName(a)[0]);
8}
9
10for (var i = 0; i < menu_id.length; i++) {
11	var menu = _$("l_" + menu_id[i]);
12	menu.onmouseover = function() { z(this); };
13	menu.onmouseout = function() { z_prec(this, true); }
14	ok_[menu_id[i]] = false;
15}
16
17function t(a_, b){
18	try {
19		var a = document.getElementById(a_);
20		a.style.opacity = b / 100;
21		a.style.MozOpacity = b / 100;
22		a.style.KhtmlOpacity = b / 100;
23		a.style.filter = "alpha(opacity=" + b + ")";
24		
25		if (b == 0)
26			a.style.display = "none";
27		
28	} catch (e) {
29	}
30}
31
32
33function z(a) {
34	var id = parseInt(("" + a.id).substring(2), 10);
35
36	if (ok_[id] == false) {
37		var l = gXY(document.getElementById("l_" + id))[0];
38
39		var m = _$("m_" + id);
40		t("m_" + id, 0);
41		m.style.display = "block";
42		m.style.left = l + "px";
43
44		try {
45			for (var i in prec[id])
46				clearTimeout(prec[id][i]);
47			
48			prec[id] = [];
49		} catch (e) {
50		}
51		
52		ok_[id] = true;
53		
54		for (var i = 10; i <= 100; i += 10)
55			setTimeout('t("m_"+' + id + ',' + i + ')', (i + 1) * 2);
56		
57	} else {
58		try {
59			clearTimeout(menu_t[id]);
60		} catch (e) {
61		}
62	}
63}
64
65function z_prec_f(id){
66	prec[id] = [];
67	ok_[id] = false;
68	for (var i = 90; i >= 0; i -= 10)
69		prec[id].push(setTimeout('t("m_"+' + id + ',' + i + ')', (100 - i + 1) * 2));
70}
71
72function z_prec(a, b){
73	var id = parseInt(("" + a.id).substring(2), 10);
74	try {
75		clearTimeout(menu_t[id]);
76	} catch (e) {
77	}
78
79	if (b)
80		menu_t[id] = setTimeout("z_prec_f(" + id + ")", 250);
81}
82
83
84function gXY(o) {
85	var xy = [0, 0];
86	if (o.offsetParent) {
87		xy[0] = o.offsetLeft;
88		xy[1] = o.offsetTop;
89		while (o = o.offsetParent) {
90			xy[0] += o.offsetLeft;
91			xy[1] += o.offsetTop;
92        }
93	}
94	return xy;
95}
96
97var wX = wY = 0;
98document.onmousemove = getMouseXY;
99
100function getMouseXY(e) {
101  if (document.all) {
102    wX = event.clientX + document.body.scrollLeft;
103    wY = event.clientY + document.body.scrollTop;
104  } else {
105    wX = e.pageX;
106    wY = e.pageY;
107  }  
108  
109  if (wX < 0)
110	wX = 0;
111	
112	if (wY < 0)
113		wY = 0;
114
115	return true;
116}

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.