PageSourceSearch

https://pixelcraft.uz/bitrix/templates/main/components/bitrix/menu/top/script.js

js pixelcraft.uz collected 2026-10-07 19:51:50 UTC 915 bytes, 41 lines download raw bytes

1var jshover = function()
2{
3	var menuDiv = document.getElementById("horizontal-multilevel-menu")
4	if (!menuDiv)
5		return;
6
7	var sfEls = menuDiv.getElementsByTagName("li");
8	for (var i=0; i<sfEls.length; i++) 
9	{
10		sfEls[i].onmouseover=function()
11		{
12			this.className+=" jshover";
13		}
14		sfEls[i].onmouseout=function() 
15		{
16			this.className=this.className.replace(new RegExp(" jshover\\b"), "");
17		}
18	}
19}
20
21if (window.attachEvent) 
22	window.attachEvent("onload", jshover);
23
24$(function(){
25    $('#horizontal-multilevel-menu li.dl-1').hover(function(){
26        var offset_menu = $('#horizontal-multilevel-menu').offset();
27        var offset_item = $(this).offset();
28
29        var m = offset_item.left - offset_menu.left;
30
31        //console.log(offset_menu);
32        //console.log(offset_item);
33        //console.log(m);
34
35        $(this).find("ul").css("marginLeft", -m);
36
37        //$(this).
38    },function(){
39
40    });
41});

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.