PageSourceSearch

https://www.pj-color.com/scripts/menu.js

js pj-color.com collected 2026-09-26 07:33:04 UTC 2,614 bytes, 81 lines download raw bytes

1mmHideMenuTimer=null;
2window.ActiveMenu="mm_menu_1_0";
3
4function MM_startTimeout(menu) {
5		sTmp="mmDoHide('" + menu + "')";
6		mmHideMenuTimer = setTimeout(sTmp, 500);
7}
8
9function MM_startSubTimeout(menu) {
10		sSubTmp="mmDoHide('" + menu + "')";
11		mmHideSubMenuTimer = setTimeout(sSubTmp, 500);
12}
13
14function MM_startSubSubTimeout(menu) {
15		sSubSubTmp="mmDoHide('" + menu + "')";
16		mmHideSubSubMenuTimer = setTimeout(sSubSubTmp, 500);
17}
18
19function mmDoHide(menu) {
20		MM_showHideLayers(menu,'','hide');
21}
22
23function MM_showMenu(menu) {
24	mmDoHide(window.ActiveMenu);
25	window.ActiveMenu=menu;
26	MM_showHideLayers(menu,'','show');
27	clearTimeout(mmHideMenuTimer);
28}
29
30function MM_showSubMenu(parent,menu) {
31	//alert(menu);
32	window.ActiveMenu=parent;
33	window.ActiveSubMenu=menu;
34	MM_showHideLayers(parent,'','show');
35	MM_showHideLayers(menu,'','show');
36	clearTimeout(mmHideMenuTimer);
37	clearTimeout(mmHideSubMenuTimer);
38}
39
40function MM_showSubSubMenu(parent,menu,submenu) {
41	//alert(menu);
42	window.ActiveMenu=parent;
43	window.ActiveSubMenu=menu;
44	window.ActiveSubSubMenu=menu;
45	MM_showHideLayers(parent,'','show');
46	MM_showHideLayers(menu,'','show');
47	MM_showHideLayers(submenu,'','show');
48	clearTimeout(mmHideMenuTimer);
49	clearTimeout(mmHideSubMenuTimer);
50	clearTimeout(mmHideSubSubMenuTimer);
51}
52
53function MM_showHideLayers() { //v6.0
54  var i,p,v,obj,args=MM_showHideLayers.arguments;
55  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
56    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
57    obj.visibility=v; }
58}
59
60function MM_findObj(n, d) { //v4.01
61  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
62    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
63  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
64  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
65  if(!x && d.getElementById) x=d.getElementById(n); return x;
66}
67
68function MM_swapImage() { //v3.0
69  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
70   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
71}
72
73function MM_swapImgRestore() { //v3.0
74  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
75}
76
77function MM_preloadImages() { //v3.0
78  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
79    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
80    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
81}

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.