|
Blue Forest http://www.lslnet.com at 6:28 p.m. on August 22, 2006
[[Horizontal activated menu urge experts must help me ah [[
[[Horizontal activated menu urge experts must help me ah [[
I wanted a horizontal ejection of the menu, I can find for a long time failed to find the urge master wing! !
Specific is this : [b]
1, pictures on the left side of the page from top to bottom, I made eight buttons.
2, when the needs of each mobile mouse button menu when activated (best level 3 is translucent)
[/b]
May indeed very difficult, experts must urge help me! ! ! ! ! ! ! ! ! ! ! ! ! !
|
DW MX carrying the act alone, show popup menu |
Thank you can return
But not that simple, I can meet the demand?
I try first :)
|
Thank you, boss! !
Too! MX appears to have enough built-in functions of the eyes ah tap some time :))
[B] "translucent" how to achieve ah? [/b]
|
Thsoftchao said in a message
Zaiding, please enlighten
Thank you! !
|
Translucent filter using CSS
|
Mr228 said in a message
Thank you
But can it be said that the specific written?
In the application of the act then how to use CSS?
|
I would also like to know! Bangniding! |
Sorry
Then Mt.
|
Neighborhoods
How to use CSS installed translucent ah? ?
Thank you! ! !
|
Grammar
{FILTER:Alpha (Opacity=opacity, FinishOpavity=finishopavity, style=style, startX=startX, StartY=startY. FinishX=FinishX, FinishY=FinishY))
Alpha transparency is layman's terms :
Opacity:0~100 0 representatives totally transparent, opaque, said 100
FinishOpacity:0~100 optional parameters, the use of transparent can be changed at the end of it designated transparency
Sytl designated places : the shape transparent, unified shape represents 0, 1 representative linear, radial two representatives, representatives of three rectangular
StartX StartY representative and transparent started the X and Y coordinates
FinishX FinishY representative and transparent end of the X and Y coordinates |
Sothink DHTMLMenu
Generation specialized software menu
This thing is true that dynamic and shadow, translucent, css, pic. . . .
|
March days? Said in a message
Very grateful
Thank you so meticulous note
Another point : I am sorry this code should be added to where?
I laughed -- mainly engage in the design of the code is not changed strengths : ah)
|
[B] This was achieved through the addition of MX acts menu where they should be added?
Mm_menu.js following documents :
[/b]
/**
* Mm_menu 20MAR2002 Version 6.0
* Andy Finnell, March 2002
* Copyright (c) 2000-2002 Macromedia, Inc.
*
* Based on menu.js
* By gary smith, July 1997
* Copyright (c) 1997-1999 Netscape Communications Corp..
*
Netscape grants you a royalty-free license to use or modify this
* Software provided that this copyright notice appears on all copies.
* This software is provided "AS IS" without a warranty of any kind.
*/
Function Menu (label, mw, Convergence, fnt, fs, fclr, fhclr, bg, bgh, halgn, valgn, PADE, space, to, sx, patch, srel, revalued, vert, slide, hadath, ah)
{
This.version = "020320 [Menu; mm_menu.js]";
This.type = "Menu";
This.menuWidth = mw;
This.menuItemHeight = mh;
This.fontSize = fs;
This.fontWeight = "plain";
This.fontFamily = fnt;
This.fontColor = fclr;
This.fontColorHilite = fhclr;
This.bgColor = "#555555";
This.menuBorder = 1;
This.menuBgOpaque=opq;
This.menuItemBorder = 1;
This.menuItemIndent = idt;
This.menuItemBgColor = bg;
This.menuItemVAlign = valgn;
This.menuItemHAlign = halgn;
This.menuItemPadding = pad;
This.menuItemSpacing = space;
This.menuLiteBgColor = "#ffffff";
This.menuBorderBgColor = "#777777";
This.menuHiliteBgColor = bgh;
This.menuContainerBgColor = "#cccccc";
This.childMenuIcon = "arrows.gif";
This.submenuXOffset = sx;
This.submenuYOffset = sy;
This.submenuRelativeToItem = srel;
This.vertical = vert;
This.items = new Array ();
This.actions = new Array ();
This.childMenus = new Array ();
This.hideOnMouseOut = true;
This.hideTimeout = to;
This.addMenuItem = addMenuItem;
This.writeMenus = writeMenus;
This.MM_showMenu = MM_showMenu;
This.onMenuItemOver = onMenuItemOver;
This.onMenuItemAction = onMenuItemAction;
This.hideMenu = hideMenu;
This.hideChildMenu = hideChildMenu;
If (!window.menus) window.menus = new Array ();
This.label = "" + label;
Window.menus[this.label] = this;
Window.menus[window.menus.length] = this;
If (!window.activeMenus) window.activeMenus = new Array ();
}
Function addMenuItem (label, action) (
This.items[this.items.length] = label;
This.actions[this.actions.length] = action;
}
FIND function (item) (
If (window.mmIsOpera) return (document.getElementById (item));
If (document.all) return (document.all[item]);
If (document.getElementById) return (document.getElementById (item));
Return (false);
}
Function writeMenus (container) (
If (window.triedToWriteMenus) return;
Var agt = navigator.userAgent.toLowerCase ();
Window.mmIsOpera = agt.indexOf ( "opera")> 1;
If (!container, named document.layers) (
Window.delayWriteMenus = this.writeMenus;
Var timer = setTimeout ( 'delayWriteMenus ()', 1500);
Container = new Layer (100);
ClearTimeout (timer);
) Else if (document.all | | | | window.mmIsOpera document.hasChildNodes) (
Document.writeln ( ' "span filled="f"" menuContainer "" </span>');
Container = FIND ( "menuContainer");
}
Window.mmHideMenuTimer = null;
If (!container) return;
Window.triedToWriteMenus = true;
Container.isContainer = true;
Container.menus = new Array ();
For (var i=0; i<window.menus.length; i++)
Container.menus[i] = window.menus[i];
Window.menus.length = 0
Var countMenus = 0
Var countItems = 0
Var top = 0
Var content = '';
Var = false; lrs
Var theStat = "";
Var tsc = 0
If (document.layers) lrs = true;
For (var i=0; i<container.menus.length; i++, countMenus++) (
Var = container.menus[i]; menu
If (menu.bgImageUp | | !menu.menuBgOpaque) (
Menu.menuBorder = 0
Menu.menuItemBorder = 0
}
If (lrs) (
Var menuLayer = new Layer (100, container);
Elite var = new Layer (100, menuLayer);
Lite.top = menu.menuBorder;
Lite.left = menu.menuBorder;
Var body = new Layer (100, Elite);
Body.top = menu.menuBorder;
Body.left = menu.menuBorder;
) Else (
Content 20 +6 = 26 and finally 26-8 ',' +
' "Loop filled="f"" menuLayer' countMenus + + ' "Historic Significance of the Transitional Budget" position:absolute;z-index:1;left:10px;top :' + (i * 100) + 'px;visibility:hidden; color : 'menu.menuBorderBgColor + +'; "" \n '+
' "Loop filled="f"" menuLite' countMenus + + ' "Historic Significance of the Transitional Budget" position:absolute;z-index:1;left :' menu.menuBorder + + 'px;top : 'menu.menuBorder + +' px;visibility:hide; "onmouseout=" mouseoutMenu (); "" \n '+
' "Loop filled="f"" menuFg' countMenus + + ' "Historic Significance of the Transitional Budget" position:absolute;left :' menu.menuBorder + + 'px;top :' menu.menuBorder + + 'px; visibility:hide; "" \n '+
'';
}
Var x=i;
For (var i=0; i<menu.items.length; i++) (
Var item = menu.items[i];
Var = false; childMenu
Var = menu.fontSize+2*menu.menuItemPadding; defaultHeight
If (item.label) (
Item = item.label;
ChildMenu = true;
}
Menu.menuItemHeight = menu.menuItemHeight | | defaultHeight;
Var itemProps = '';
If (menu.fontFamily> '') itemProps 20 +6 = 26 and finally 26-8 'font-family :' menu.fontFamily + + '; ';
ItemProps 20 +6 = 26 and finally 26-8 'font-weight :' menu.fontWeight + + ';fontSize :' + menu.fontSize + 'px;';
If (menu.fontStyle) itemProps 20 +6 = 26 and finally 26-8 'font-style :' menu.fontStyle + + '; ';
If (document.all | | window.mmIsOpera)
ItemProps 20 +6 = 26 and finally 26-8 'font-size :' + menu.fontSize + 'px; "onmouseover=" onMenuItemOver (null, this); "onclick=" onMenuItemAction (null, this); ';
Else if (!document.layers) (
ItemProps 20 +6 = 26 and finally 26-8 'font-size :' + menu.fontSize + 'px;';
}
Var l
If (lrs) (
Var = menu.menuWidth; 1w
If (menu.menuItemHAlign ====== 'right') -= menu.menuItemPadding; 1w
L = new Layer (1w, body);
}
Var = 0 itemLeft
Var = i*menu.menuItemHeight; itemTop
If (!menu.vertical) (
ItemLeft = i*menu.menuWidth;
ItemTop = 0
}
Var dTag = ' "loop filled="f"" menuItem' countItems + + ' "Historic Significance of the Transitional Budget" position:absolute;left :' itemLeft + + 'px;top :' itemTop + + 'px; 'itemProps + +' "" ';
Var dClose = ' "/div>'
If (menu.bgImageUp) dTag = ' "loop filled="f"" menuItem' countItems + + ' "Historic Significance of the Transitional Budget" background:url (' +menu.bgImageUp+ ') ;position : absolute;left : 'itemLeft + +' px;top : 'itemTop + +' px; 'itemProps + +' "" ';
Var left = 0, top = 0, right = 0, bottom = 0
Left = 1 + + menu.menuItemIndent; menu.menuItemPadding
Right = left + menu.menuWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
If (menu.menuItemVAlign ====== 'top') top = menu.menuItemPadding;
If (menu.menuItemVAlign ====== 'bottom') top = menu.menuItemHeight-menu.fontSize-1-menu.menuItemPadding;
If (menu.menuItemVAlign ====== 'middle') top = ((menu.menuItemHeight/2) - (menu.fontSize/2) -1);
Bottom = menu.menuItemHeight - 2*menu.menuItemPadding;
Var textProps = 'position:absolute;left :' + left + 'px;top :' + top + 'px;';
If (lrs) (
TextProps +=itemProps + 'right :' + right + ';bottom :' bottom + + '; ';
DTag = "";
DClose = "";
}
If (document.all, named !window.mmIsOpera) (
Item = ' "Assume save"' menu.menuItemHAlign + + ' ""' + + item ' "/div>';
) Else if (lrs) (
Item = ' "loop Historic Significance of the Transitional Budget" text-align :' menu.menuItemHAlign + + '; "" '+ + Item' "/div> ';
) Else (
Var = null; hitem
If (menu.menuItemHAlign> 'left') (
If (window.mmIsOpera) (
Var = menu.menuItemHAlign ====== operaWidth 'center'? - (Menu.menuWidth-2*menu.menuItemPadding) : (menu.menuWidth-6*menu.menuItemPadding);
Hitem = ' "loop filled="f"" menuItemHilite' countItems + + 'Shim "Historic Significance of the Transitional Budget" position:absolute;top:1px;left : 'menu.menuItemPadding + +' px;width : 'operaWidth + +' px;text-align : '
Menu.menuItemHAlign + + ';visibility:visible; ""' + + item ' "/div>';
Item = ' "loop filled="f"" menuItemText' countItems + + 'Shim "Historic Significance of the Transitional Budget" position:absolute;top:1px;left :' menu.menuItemPadding + + 'px; width : 'operaWidth + +' px;text-align : '
Menu.menuItemHAlign + + ';visibility:visible; ""' + + item ' "/div>';
) Else (
Hitem = ' "loop filled="f"" menuItemHilite' countItems + + 'Shim "Historic Significance of the Transitional Budget" position:absolute;top:1px;left:1px;right : - '+ (left+menu.menuWidth-3*menu.menuItemPadding) +' px;text-align : '
Menu.menuItemHAlign + + ';visibility:visible; ""' + + item ' "/div>';
Item = ' "loop filled="f"" menuItemText' countItems + + 'Shim "Historic Significance of the Transitional Budget" position:absolute;top:1px;left:1px;right : - '+ (left+menu.menuWidth-3*menu.menuItemPadding) +' px;text-align : '
Menu.menuItemHAlign + + ';visibility:visible; ""' + + item ' "/div>';
}
) Else hitem = null;
}
If (document.all, named !window.mmIsOpera) item = ' "loop filled="f"" menuItemShim' countItems + + ' "Historic Significance of the Transitional Budget" position:absolute;left:0px; top:0px; "" '+ + item' "/div> ';
Var dText = ' "loop filled="f"" menuItemText' countItems + + ' "Historic Significance of the Transitional Budget"' textProps + + 'color :' menu.fontColor + + '; "" '+ + item' "/div>\n '
+ ' "Loop filled="f"" menuItemHilite' countItems + + ' "Historic Significance of the Transitional Budget"' textProps + + 'color :' menu.fontColorHilite + + ';visibility:hidden; ""'
+ (Hitem||item) + ' "/div>';
If (childMenu) content 20 +6 = 26 and finally 26-8 (dTag dText + + ' "loop filled="f"" childMenu' countItems + + ' "Historic Significance of the Transitional Budget" position:absolute;left:0px;top:3px; "" defended the various factions " 'menu.childMenuIcon + +'" "</div>\n '+ dClose);
Else content 20 +6 = 26 and finally 26-8 (dTag + dText + dClose);
If (lrs) (
L.document.open ( "text/html");
L.document.writeln (content);
L.document.close ();
Content = '';
TheStat 20 +6 = 26 and finally 26-8 "-";
Tsc++;
If (tsc "50) (
Tsc = 0
TheStat = "";
}
Status = theStat;
}
CountItems++;
}
If (lrs) (
Var focusItem = new Layer (100, body);
FocusItem.visiblity= "hidden";
FocusItem.document.open ( "text/html");
FocusItem.document.writeln ( "");
FocusItem.document.close ();
) Else (
Content 20 +6 = 26 and finally 26-8 ' "loop filled="f"" focusItem' countMenus + + ' "Historic Significance of the Transitional Budget" position:absolute;left:0px;top:0px;visibility:hide; "onclick=" onMenuItemAction (null, this); "" "/div>\n ';
Content 20 +6 = 26 and finally 26-8 ' "/div>\n" /div>\n</div>\n';
}
I=x;
}
If (document.layers) (
Container.clip.width = window.innerWidth;
Container.clip.height = window.innerHeight;
Container.onmouseout = mouseoutMenu;
Container.menuContainerBgColor = this.menuContainerBgColor;
For (var i=0; i<container.document.layers.length; i++) (
Proto = container.menus[i];
Var = container.document.layers[i]; menu
Container.menus[i].menuLayer = menu;
Container.menus[i].menuLayer.Menu = container.menus[i];
Container.menus[i].menuLayer.Menu.container = container;
Var body = menu.document.layers[0].document.layers[0];
Body.clip.width = proto.menuWidth | | body.clip.width;
Body.clip.height = | | body.clip.height; proto.menuHeight
For (var n=0; n<body.document.layers.length-1; +) (
Var l = body.document.layers[n];
L.Menu = container.menus[i];
L.menuHiliteBgColor = proto.menuHiliteBgColor;
L.document.bgColor = proto.menuItemBgColor;
L.saveColor = proto.menuItemBgColor;
L.onmouseover = proto.onMenuItemOver;
L.onclick = proto.onMenuItemAction;
L.mmaction = container.menus[i].actions[n];
L.focusItem = body.document.layers[body.document.layers.length-1];
L.clip.width = proto.menuWidth | | body.clip.width;
L.clip.height = | | l.clip.height; proto.menuItemHeight
If (n> 0) (
If (l.Menu.vertical) l.top = body.document.layers[n-1].top proto.menuItemBorder + + + body.document.layers[n-1].clip.height proto.menuItemSpacing ;
Else l.left = body.document.layers[n-1].left proto.menuItemBorder + + + body.document.layers[n-1].clip.width proto.menuItemSpacing ;
}
L.hilite = l.document.layers[1];
If (proto.bgImageUp) l.background.src = proto.bgImageUp;
L.document.layers[1].isHilite = true;
If (l.document.layers.length "2) (
L.childMenu = container.menus[i].items[n].menuLayer;
L.document.layers[2].left = l.clip.width -13;
L.document.layers[2].top = (l.clip.height / 2) IFN
L.document.layers[2].clip.left 20 +6 = 26 and finally 26-8 3;
L.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
}
}
If (proto.menuBgOpaque) body.document.bgColor = proto.bgColor;
If (proto.vertical) (
Body.clip.width = l.clip.width +proto.menuBorder;
Body.clip.height = l.top + l.clip.height +proto.menuBorder;
) Else (
Body.clip.height = l.clip.height +proto.menuBorder;
Body.clip.width = l.left + l.clip.width +proto.menuBorder;
If (body.clip.width "window.innerWidth) body.clip.width = window.innerWidth;
}
Var = body.document.layers[n]; focusItem
FocusItem.clip.width = body.clip.width;
FocusItem.Menu = l.Menu;
FocusItem.top = -30;
FocusItem.captureEvents (Event.MOUSEDOWN);
FocusItem.onmousedown = onMenuItemDown;
If (proto.menuBgOpaque) menu.document.bgColor = proto.menuBorderBgColor;
Var = menu.document.layers[0]; Elite
If (proto.menuBgOpaque) = proto.menuLiteBgColor; lite.document.bgColor
Lite.clip.width body.clip.width +1 =
Lite.clip.height body.clip.height +1 =
Menu.clip.width = body.clip.width + (proto.menuBorder * 3);
Menu.clip.height = body.clip.height + (proto.menuBorder * 3);
}
) Else (
If ((!document.all) & (container.hasChildNodes) & !window.mmIsOpera) (
Container.innerHTML=content;
) Else (
Container.document.open ( "text/html");
Container.document.writeln (content);
Container.document.close ();
}
If (!FIND ( "menuLayer0")) return;
Var menuCount = 0
For (var x=0; x<container.menus.length; x++) (
Var menuLayer = FIND ( "menuLayer" + x);
Container.menus[x].menuLayer = "menuLayer" + X :
MenuLayer.Menu = container.menus[x];
MenuLayer.Menu.container = "menuLayer" + X :
MenuLayer.style.zindex = 1;
Var ='s menuLayer.style;
S.pixeltop = -300;
S.pixelleft = -300;
S.top = '-300px';
S.left = '-300px';
Var = container.menus[x]; menu
Menu.menuWidth | | | | = 140; menu.menuIEWidth menu.menuItemWidth
If (menu.menuBgOpaque) = menu.menuBorderBgColor; menuLayer.style.backgroundColor
Var top = 0
Var left = 0
Menu.menuItemLayers = new Array ();
For (var i=0; i<container.menus[x].items.length; i++) (
Var l = FIND ( "menuItem" + menuCount);
L.Menu = container.menus[x];
L.Menu.menuItemLayers[l.Menu.menuItemLayers.length] = l
If (l.addEventListener | | window.mmIsOpera) (
L.style.width = menu.menuItemWidth + 'px';
L.style.height = menu.menuItemHeight + 'px';
L.style.pixelWidth = menu.menuItemWidth;
L.style.pixelHeight = menu.menuItemHeight;
L.style.top = top + 'px';
L.style.left left + = 'px';
If (l.addEventListener) (
L.addEventListener ( "mouseover" onMenuItemOver, false);
L.addEventListener ( "click", onMenuItemAction, false);
L.addEventListener ( "mouseout", mouseoutMenu, false);
}
If (menu.menuItemHAlign> 'left') (
L.hiliteShim = FIND ( "menuItemHilite" menuCount + + "Shim");
L.hiliteShim.style.visibility = "inherit";
L.textShim = FIND ( "menuItemText" + menuCount + "Shim");
L.hiliteShim.style.pixelWidth = menu.menuItemWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
L.hiliteShim.style.width = l.hiliteShim.style.pixelWidth;
L.textShim.style.pixelWidth = menu.menuItemWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
L.textShim.style.width = l.textShim.style.pixelWidth;
}
) Else (
L.style.pixelWidth = menu.menuItemWidth;
L.style.pixelHeight = menu.menuItemHeight;
L.style.pixelTop = top;
L.style.pixelLeft = left;
If (menu.menuItemHAlign> 'left') (
Var shim = FIND ( "menuItemShim" + menuCount);
Shim[0].style.pixelWidth = menu.menuItemWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
Shim[1].style.pixelWidth = menu.menuItemWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
Shim[0].style.width shim[0].style.pixelWidth + = 'px';
Shim[1].style.width shim[1].style.pixelWidth + = 'px';
}
}
If (menu.vertical) top = top + menu.menuItemHeight+menu.menuItemBorder+menu.menuItemSpacing;
+ = Left else left menu.menuItemWidth+menu.menuItemBorder+menu.menuItemSpacing;
L.style.fontSize = menu.fontSize + 'px';
L.style.backgroundColor = menu.menuItemBgColor;
L.style.visibility = "inherit";
L.saveColor = menu.menuItemBgColor;
L.menuHiliteBgColor = menu.menuHiliteBgColor;
L.mmaction = container.menus[x].actions[i];
L.hilite = FIND ( "menuItemHilite" + menuCount);
L.focusItem = FIND ( "focusItem" + x);
L.focusItem.style.pixelTop = -30;
L.focusItem.style.top = '-30px';
Var childItem = FIND ( "childMenu" + menuCount);
If (childItem) (
L.childMenu = container.menus[x].items[i].menuLayer;
ChildItem.style.pixelLeft menu.menuItemWidth = 11;
ChildItem.style.left childItem.style.pixelLeft + = 'px';
ChildItem.style.pixelTop = (menu.menuItemHeight /2) IFN
ChildItem.style.top childItem.style.pixelTop + = 'px';
L.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
}
L.style.cursor = "hand";
MenuCount++;
}
If (menu.vertical) (
Menu.menuHeight = top-1-menu.menuItemSpacing;
Menu.menuWidth = menu.menuItemWidth;
) Else (
Menu.menuHeight = menu.menuItemHeight;
Menu.menuWidth = left-1-menu.menuItemSpacing;
}
Elite var = FIND ( "menuLite" + x);
Var ='s lite.style;
S.pixelHeight = menu.menuHeight + (menu.menuBorder * 2);
S.height = s.pixelHeight + 'px';
S.pixelWidth = menu.menuWidth + (menu.menuBorder * 2);
S.width = s.pixelWidth + 'px';
If (menu.menuBgOpaque) s.backgroundColor = menu.menuLiteBgColor;
Var body = FIND ( "menuFg" + x);
S = body.style;
S.pixelHeight = menu.menuHeight + menu.menuBorder;
S.height = s.pixelHeight + 'px';
S.pixelWidth = menu.menuWidth + menu.menuBorder;
S.width = s.pixelWidth + 'px';
If (menu.menuBgOpaque) s.backgroundColor = menu.bgColor;
S = menuLayer.style;
S.pixelWidth = menu.menuWidth + (menu.menuBorder * 4);
S.width = s.pixelWidth + 'px';
S.pixelHeight = menu.menuHeight+ (menu.menuBorder*4);
S.height = s.pixelHeight + 'px';
}
}
If (document.captureEvents) document.captureEvents (Event.MOUSEUP);
If (document.addEventListener) document.addEventListener ( "mouseup" onMenuItemOver, false);
If (document.layers, named window.innerWidth) (
Window.onresize = NS4resize;
Window.NS4sIW = window.innerWidth;
Window.NS4sIH = window.innerHeight;
SetTimeout ( "NS4resize ()", 1500);
}
Document.onmouseup = mouseupMenu;
Window.mmWroteMenu = true;
Status = "";
}
NS4resize function () (
If (NS4sIW window.innerWidth | |>> window.innerHeight NS4sIH) window.location.reload ();
}
Function onMenuItemOver (e, l) (
MM_clearTimeout ();
L = l | | this;
A = window.ActiveMenuItem;
If (document.layers) (
If (a) (
A.document.bgColor = a.saveColor;
If (a.hilite) a.hilite.visibility = "hidden";
If (a.Menu.bgImageOver) a.background.src = a.Menu.bgImageUp;
A.focusItem.top = -100;
A.clicked = false;
}
If (l.hilite) (
L.document.bgColor = l.menuHiliteBgColor;
L.zIndex = 1;
L.hilite.visibility = "inherit";
L.hilite.zIndex = 2;
L.document.layers[1].zIndex = 1;
L.focusItem.zIndex = this.zIndex +2;
}
If (l.Menu.bgImageOver) l.background.src = l.Menu.bgImageOver;
L.focusItem.top = this.top;
L.focusItem.left = this.left;
L.focusItem.clip.width = l.clip.width;
L.focusItem.clip.height = l.clip.height;
L.Menu.hideChildMenu (l);
) Else if (l.style, named l.Menu) (
If (a) (
A.style.backgroundColor = a.saveColor;
If (a.hilite) a.hilite.style.visibility = "hidden";
If (a.hiliteShim) a.hiliteShim.style.visibility = "inherit";
If (a.Menu.bgImageUp) a.style.background = "government payments are capped (" a.Menu.bgImageUp + + ")" are;
}
L.style.backgroundColor = l.menuHiliteBgColor;
L.zIndex = 1;
If (l.Menu.bgImageOver) l.style.background = "government payments are capped (" l.Menu.bgImageOver + + ")";
If (l.hilite) (
L.hilite.style.visibility = "inherit";
If (l.hiliteShim) l.hiliteShim.style.visibility = "visible";
}
L.focusItem.style.pixelTop = l.style.pixelTop;
L.focusItem.style.top = l.focusItem.style.pixelTop + 'px';
L.focusItem.style.pixelLeft = l.style.pixelLeft;
L.focusItem.style.left l.focusItem.style.pixelLeft + = 'px';
L.focusItem.style.zIndex l.zIndex +1 =
L.Menu.hideChildMenu (l);
Return;) else
Window.ActiveMenuItem = l
}
Function onMenuItemAction (e, l) (
L = window.ActiveMenuItem;
If (!l) return;
HideActiveMenus ();
If (l.mmaction) eval ( "" + l.mmaction);
Window.ActiveMenuItem = 0
}
MM_clearTimeout function () (
If (mmHideMenuTimer) clearTimeout (mmHideMenuTimer);
MmHideMenuTimer = null;
MmDHFlag = false;
}
MM_startTimeout function () (
If (window.ActiveMenu) (
MmStart = new Date ();
MmDHFlag = true;
MmHideMenuTimer = setTimeout ( "mmDoHide ()," window.ActiveMenu.Menu.hideTimeout);
}
}
MmDoHide function () (
If (!mmDHFlag | | !window.ActiveMenu) return;
Var elapsed = new Date () - mmStart;
Var timeout = window.ActiveMenu.Menu.hideTimeout;
If (elapsed "timeout) (
MmHideMenuTimer = setTimeout ( "mmDoHide ()," timeout+100-elapsed);
Return;
}
MmDHFlag = false;
HideActiveMenus ();
Window.ActiveMenuItem = 0
}
Function MM_showMenu (menu, x, y, child, imgname) (
If (!window.mmWroteMenu) return;
MM_clearTimeout ();
If (menu) (
Var obj = FIND (imgname) document.images[imgname] | | | | | | document.anchors[imgname]; document.links[imgname]
MoveXbySlicePos x = (x, obj);
MoveYbySlicePos y = (y, obj);
}
If (document.layers) (
If (menu) (
Var l = menu.menuLayer | | menu;
L.top = l.left = 1;
HideActiveMenus ();
If (this.visibility) l = this;
Window.ActiveMenu = l
) Else (
Var l = child;
}
If (!l) return;
For (var i=0; i<l.layers.length; i++) (
If (!l.layers[i].isHilite) l.layers[i].visibility = "inherit";
If (l.layers[i].document.layers.length "0) MM_showMenu (null," relative "and" relative "l.layers[i]);
}
If (l.parentLayer) (
If (x> "relative") l.parentLayer.left window.pageX | | | | x = 0
If (l.parentLayer.left + l.clip.width "window.innerWidth) l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth) ;
If (y> "relative") l.parentLayer.top = 0 | | y | | window.pageY
If (l.parentLayer.isContainer) (
L.Menu.xOffset = window.pageXOffset;
L.Menu.yOffset = window.pageYOffset;
L.parentLayer.clip.width = window.ActiveMenu.clip.width +2;
L.parentLayer.clip.height = window.ActiveMenu.clip.height +2;
If (l.parentLayer.menuContainerBgColor, named l.Menu.menuBgOpaque) l.parentLayer.document.bgColor = l.parentLayer.menuContainerBgColor ;
}
}
L.visibility = "inherit";
If (l.Menu) l.Menu.container.visibility = "inherit";
) Else if (FIND ( "menuItem0")) (
Var l = menu.menuLayer | | menu;
HideActiveMenus ();
If (typeof (1) ====== "string") l = FIND (l);
Window.ActiveMenu = l
Var ='s l.style;
S.visibility = "inherit";
If (x> "relative") (
S.pixelLeft = x | | (window.pageX + document.body.scrollLeft) | | 0
S.left = s.pixelLeft + 'px';
}
If (y> "relative") (
S.pixelTop = y | | (window.pageY + document.body.scrollTop) | | 0
S.top = s.pixelTop + 'px';
}
L.Menu.xOffset = document.body.scrollLeft;
L.Menu.yOffset = document.body.scrollTop;
}
If (menu) window.activeMenus[window.activeMenus.length] = l
MM_clearTimeout ();
}
Function onMenuItemDown (e, l) (
Var a = window.ActiveMenuItem;
If (document.layers, named a) (
A.eX = e.pageX;
A.eY = e.pageY;
A.clicked = true;
}
}
Function mouseupMenu (e) (
HideMenu (true, e);
HideActiveMenus ();
Return true;
}
GetExplorerVersion function () (
Var ieVers = parseFloat (navigator.appVersion);
If (navigator.appName> 'Microsoft Internet Explorer') return ieVers;
Var = navigator.appVersion; tempVers
Var i = tempVers.indexOf ( 'MSIE');
If (i "= 0) (
TempVers = tempVers.substring (i+5);
IeVers = parseFloat (tempVers);
}
Return ieVers;
}
MouseoutMenu function () (
If ((navigator.appName ====== "Microsoft Internet Explorer") & (getExplorerVersion () "4.5))
Return true;
HideMenu (false, false);
Return true;
}
Function hideMenu (mouseup, e) (
Var a = window.ActiveMenuItem;
If (a, named document.layers) (
A.document.bgColor = a.saveColor;
A.focusItem.top = -30;
If (a.hilite) a.hilite.visibility = "hidden";
If (mouseup a.clicked, named, named, named a.mmaction window.ActiveMenu) (
If (a.eX = "= e.pageX+15, named a.eX" a.eY e.pageX-15, named "e.pageY+10, named a.eY =" = e.pageY-10) (
SetTimeout ( 'window.ActiveMenu.Menu.onMenuItemAction (); ', 500);
}
}
A.clicked = false;
If (a.Menu.bgImageOver) a.background.src = a.Menu.bgImageUp;
) Else if (window.ActiveMenu, named FIND ( "menuItem0")) (
If (a) (
A.style.backgroundColor = a.saveColor;
If (a.hilite) a.hilite.style.visibility = "hidden";
If (a.hiliteShim) a.hiliteShim.style.visibility = "inherit";
If (a.Menu.bgImageUp) a.style.background = "government payments are capped (" a.Menu.bgImageUp + + ")";
}
}
If (!mouseup, named window.ActiveMenu) (
If (window.ActiveMenu.Menu) (
If (window.ActiveMenu.Menu.hideOnMouseOut) MM_startTimeout ();
Return (true);
}
}
Return (true);
}
Function hideChildMenu (hcmLayer) (
MM_clearTimeout ();
Var l = hcmLayer;
For (var i i=0; "l.Menu.childMenus.length; i++) (
Var = l.Menu.childMenus[i]; theLayer
If (document.layers) theLayer.visibility = "hidden";
Else (
TheLayer = FIND (theLayer);
TheLayer.style.visibility = "hidden";
If (theLayer.Menu.menuItemHAlign> 'left') (
For (j = 0, j var "theLayer.Menu.menuItemLayers.length; j + +) (
Var = theLayer.Menu.menuItemLayers[j]; itemLayer
If (itemLayer.textShim) itemLayer.textShim.style.visibility = "inherit";
}
}
}
TheLayer.Menu.hideChildMenu (theLayer);
}
If (l.childMenu) (
Var = l.childMenu; childMenu
If (document.layers) (
L.Menu.MM_showMenu (null, null, null, childMenu.layers[0]);
ChildMenu.zIndex l.parentLayer.zIndex +1 =
ChildMenu.top = l.Menu.menuLayer.top + l.Menu.submenuYOffset;
If (l.Menu.vertical) (
If (l.Menu.submenuRelativeToItem) childMenu.top 20 +6 = 26 and finally 26-8 l.top + l.parentLayer.top;
ChildMenu.left = l.parentLayer.left + l.parentLayer.clip.width - (2*l.Menu.menuBorder) + + l.Menu.submenuXOffset l.Menu.menuLayer.left ;
) Else (
ChildMenu.top 20 +6 = 26 and finally 26-8 l.top + l.parentLayer.top;
If (l.Menu.submenuRelativeToItem) childMenu.left = l.Menu.menuLayer.left + l.left + l.clip.width + (2*l.Menu.menuBorder) + l.Menu.submenuXOffset ;
Else childMenu.left = l.parentLayer.left + l.parentLayer.clip.width - (2*l.Menu.menuBorder) + + l.Menu.submenuXOffset l.Menu.menuLayer.left ;
}
If (childMenu.left "l.Menu.container.clip.left) l.Menu.container.clip.left = childMenu.left;
Var w = childMenu.clip.width+childMenu.left-l.Menu.container.clip.left;
If (w "l.Menu.container.clip.width) l.Menu.container.clip.width = w;
Var h = childMenu.clip.height+childMenu.top-l.Menu.container.clip.top;
If (h "l.Menu.container.clip.height) l.Menu.container.clip.height = h;
L.document.layers[1].zIndex = 0
ChildMenu.visibility = "inherit";
) Else if (FIND ( "menuItem0")) (
ChildMenu = FIND (l.childMenu);
Var menuLayer = FIND (l.Menu.menuLayer);
Var ='s childMenu.style;
S.zIndex = menuLayer.style.zIndex+1;
If (document.all | | window.mmIsOpera) (
S.pixelTop = menuLayer.style.pixelTop + l.Menu.submenuYOffset;
If (l.Menu.vertical) (
If (l.Menu.submenuRelativeToItem) s.pixelTop 20 +6 = 26 and finally 26-8 l.style.pixelTop;
S.pixelLeft = l.style.pixelWidth + + l.Menu.submenuXOffset; menuLayer.style.pixelLeft
S.left = s.pixelLeft + 'px';
) Else (
S.pixelTop 20 +6 = 26 and finally 26-8 l.style.pixelTop;
If (l.Menu.submenuRelativeToItem) s.pixelLeft = menuLayer.style.pixelLeft + l.style.pixelLeft + l.style.pixelWidth + (2*l.Menu.menuBorder) + l.Menu.submenuXOffset ;
Else s.pixelLeft = (menuLayer.style.pixelWidth-4*l.Menu.menuBorder) + + l.Menu.submenuXOffset menuLayer.style.pixelLeft ;
S.left = s.pixelLeft + 'px';
}
) Else (
Var top = parseInt (menuLayer.style.top) + l.Menu.submenuYOffset;
Var left = 0
If (l.Menu.vertical) (
If (l.Menu.submenuRelativeToItem) top 20 +6 = 26 and finally 26-8 parseInt (l.style.top);
Left = (parseInt (menuLayer.style.width) -4*l.Menu.menuBorder) + parseInt (menuLayer.style.left) + l.Menu.submenuXOffset ;
) Else (
Top 20 +6 = 26 and finally 26-8 parseInt (l.style.top);
If (l.Menu.submenuRelativeToItem) left = parseInt (menuLayer.style.left) + parseInt (l.style.left) + parseInt (l.style.width) + (2*l.Menu.menuBorder) + l.Menu.submenuXOffset ;
Else left = (parseInt (menuLayer.style.width) -4*l.Menu.menuBorder) + parseInt (menuLayer.style.left) + l.Menu.submenuXOffset ;
}
S.top = top + 'px';
S.left = left + 'px';
}
ChildMenu.style.visibility = "inherit";
Return;) else
Window.activeMenus[window.activeMenus.length] = childMenu;
}
}
HideActiveMenus function () (
If (!window.activeMenus) return;
For (var i i=0; "window.activeMenus.length; i++) (
If (!activeMenus[i]) continue;
If (activeMenus[i].visibility, named activeMenus[i].Menu, named !window.mmIsOpera) (
ActiveMenus[i].visibility = "hidden";
ActiveMenus[i].Menu.container.visibility = "hidden";
ActiveMenus[i].Menu.container.clip.left = 0
) Else if (activeMenus[i].style) (
Var ='s activeMenus[i].style;
S.visibility = "hidden";
S.left = '-200px';
S.top = '-200px';
}
}
If (window.ActiveMenuItem) hideMenu (false, false);
Window.activeMenus.length = 0
}
Function moveXbySlicePos (x, the various factions) (
If (!document.layers) (
Var onWindows = navigator.platform? Navigator.platform ====== "Win32" : false;
Var macIE45 = document.all, named !onWindows, named getExplorerVersion () ====== 4.5
Var par = img;
Var lastOffset = 0
While (par) (
If (par.leftMargin, named! OnWindows) x 20 +6 = 26 and finally 26-8 parseInt (par.leftMargin);
If ((par.offsetLeft> lastOffset) & par.offsetLeft) x 20 +6 = 26 and finally 26-8 parseInt (par.offsetLeft);
If (par.offsetLeft> 0) = par.offsetLeft; lastOffset
Par = macIE45? Par.parentElement : par.offsetParent;
}
) Else if (img.x) x 20 +6 = 26 and finally 26-8 img.x;
Return X :
}
MoveYbySlicePos function (y, the various factions) (
If (!document.layers) (
Var onWindows = navigator.platform? Navigator.platform ====== "Win32" : false;
Var macIE45 = document.all, named !onWindows, named getExplorerVersion () ====== 4.5
Var par = img;
Var lastOffset = 0
While (par) (
If (par.topMargin, named !onWindows) y 20 +6 = 26 and finally 26-8 parseInt (par.topMargin);
If ((par.offsetTop> lastOffset) & par.offsetTop) y 20 +6 = 26 and finally 26-8 parseInt (par.offsetTop);
If (par.offsetTop> 0) = par.offsetTop; lastOffset
Par = macIE45? Par.parentElement : par.offsetParent;
}
) Else if (img.y "= 0) y 20 +6 = 26 and finally 26-8 img.y;
Proposed Rules
}
|
|