PageSourceSearch

https://soultz-les-bains.fr/javascript/menu-xhtml.js

js soultz-les-bains.fr collected 2026-10-02 22:45:19 UTC 2,790 bytes, 152 lines download raw bytes

1/*********
2
3DEFINITION DES VAIABLES DE BASE
4
5*****************/
6
7
8
9
10dom = document.getElementById;
11
12id_time = "";
13
14
15
16
17/********
18
19AFFICHAGE DES SOUS MENUS
20
21********/
22
23
24
25// Menu du haut
26
27function SousMenu (msg, pos, ouvre_div, ferme_div)
28
29{
30
31	if(dom)
32
33	{
34		killFenetre();
35		clearTimeout(id_time);
36		var d = document.getElementById(msg);
37		if (d) {
38			d.style.display='block';
39			d.style.zIndex=200;
40
41		}
42
43
44
45	}
46
47}
48
49
50/***************************************
51Fonction de recherche de position
52****************************************/
53
54function findPosX(obj)
55{
56	var curleft = 0;
57	if (obj.offsetParent)
58	{
59		while (obj.offsetParent)
60		{
61			curleft += obj.offsetLeft
62			obj = obj.offsetParent;
63		}
64	}
65	else if (obj.x)
66		curleft += obj.x;
67	return curleft;
68}
69
70function findPosY(obj)
71{
72	var curtop = 0;
73	if (obj.offsetParent)
74	{
75		while (obj.offsetParent)
76		{
77			curtop += obj.offsetTop
78			obj = obj.offsetParent;
79		}
80	}
81	else if (obj.y)
82		curtop += obj.y;
83	return curtop;
84}
85
86
87
88/********
89INVISIBILITE DES SOUS MENUS
90********/
91
92function killFenetre()
93{
94	if(dom)
95	{
96		for (var i = 0; i<nb_elts_tab; i++) {
97			if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
98		}
99	}
100}
101
102/********
103Enregistrement du time_out pour cacher les sous-menus
104********/
105function enr_timeout(action_tmp)
106{
107	id_time = setTimeout("killFenetre();"+action_tmp,500);
108}
109
110document.onclick = killFenetre;
111
112
113function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
114{
115for(var i=0; i<document.images.length; i++)
116
117//for(var i=0; i< images_png.length; i++)
118{
119var img = document.images[i]
120//var img = images_png[i]
121var imgID = img.id;
122
123var imgName = img.src.toUpperCase()
124
125if (imgName.substring(imgName.length-3, imgName.length) == "PNG" && imgID.substring(0, 3) == "png"  )
126{
127var imgID = (img.id) ? "id='" + img.id + "' " : ""
128var imgClass = (img.className) ? "class='" + img.className + "' " : ""
129var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
130var imgStyle = "display:inline-block;" + img.style.cssText
131var imgAttribs = img.attributes;
132for (var j=0; j<imgAttribs.length; j++)
133{
134var imgAttrib = imgAttribs[j];
135if (imgAttrib.nodeName == "align")
136{
137if (imgAttrib.nodeValue == "left") imgStyle = "float:left;" + imgStyle
138if (imgAttrib.nodeValue == "right") imgStyle = "float:right;" + imgStyle
139break
140}
141}
142var strNewHTML = "<span " + imgID + imgClass + imgTitle
143strNewHTML += " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
144strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
145strNewHTML += "(src='" + img.src + "', sizingMethod='scale');\"><img src='/images/pixel.gif' width='1' height='1'></span>"
146img.outerHTML = strNewHTML
147i = i-1
148}
149}
150}
151
152var prse_menu_lateral = 0;

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.