@@ 736-780 (lines=45) @@ | ||
733 | return u; |
|
734 | } |
|
735 | /* parse incoming xml */ |
|
736 | this._xmlParser = function() { |
|
737 | if (main_self.dLoad) { |
|
738 | var t = this.getXMLTopNode("menu"); |
|
739 | parentId = (t.getAttribute("parentId")!=null?t.getAttribute("parentId"):null); |
|
740 | if (parentId == null) { |
|
741 | // alert(1) |
|
742 | // main_self.idPrefix = main_self._genStr(12); |
|
743 | main_self._buildMenu(t, null); |
|
744 | main_self._initTopLevelMenu(); |
|
745 | } else { |
|
746 | main_self._buildMenu(t, main_self.idPrefix+parentId); |
|
747 | main_self._addSubMenuPolygon(main_self.idPrefix+parentId, main_self.idPrefix+parentId);//, main_self.idPull[main_self.idPrefix+parentId]); |
|
748 | if (main_self.menuSelected == main_self.idPrefix+parentId) { |
|
749 | var pId = main_self.idPrefix+parentId; |
|
750 | var isTop = main_self.itemPull[main_self.idPrefix+parentId]["parent"]==main_self.idPrefix+main_self.topId; |
|
751 | var level = ((isTop&&(!main_self.context))?main_self.dirTopLevel:main_self.dirSubLevel); |
|
752 | var isShow = false; |
|
753 | if (isTop && main_self.menuModeTopLevelTimeout && main_self.menuMode == "web" && !main_self.context) { |
|
754 | var item = main_self.idPull[main_self.idPrefix+parentId]; |
|
755 | if (item._mouseOver == true) { |
|
756 | var delay = main_self.menuModeTopLevelTimeoutTime - (new Date().getTime()-item._dynLoadTM); |
|
757 | if (delay > 1) { |
|
758 | item._menuOpenTM = window.setTimeout(function(){ main_self._showPolygon(pId, level); }, delay); |
|
759 | isShow = true; |
|
760 | } |
|
761 | } |
|
762 | } |
|
763 | if (!isShow) { main_self._showPolygon(pId, level); } |
|
764 | } |
|
765 | main_self.itemPull[main_self.idPrefix+parentId]["loaded"] = "yes"; |
|
766 | // console.log(main_self.loaderIcon) |
|
767 | if (main_self.loaderIcon == true) { main_self._updateLoaderIcon(main_self.idPrefix+parentId, false); } |
|
768 | } |
|
769 | this.destructor(); |
|
770 | main_self.callEvent("onXLE",[]); |
|
771 | } else { |
|
772 | var t = this.getXMLTopNode("menu"); |
|
773 | // alert(3) |
|
774 | // main_self.idPrefix = main_self._genStr(12); |
|
775 | main_self._buildMenu(t, null); |
|
776 | main_self.init(); |
|
777 | main_self.callEvent("onXLE",[]); |
|
778 | main_self._doOnLoad(); |
|
779 | } |
|
780 | } |
|
781 | this._xmlLoader = new dtmlXMLLoaderObject(this._xmlParser, window); |
|
782 | /* show sublevel item */ |
|
783 | this._showSubLevelItem = function(id,back) { |
@@ 710-754 (lines=45) @@ | ||
707 | return u; |
|
708 | } |
|
709 | /* parse incoming xml */ |
|
710 | this._xmlParser = function() { |
|
711 | if (main_self.dLoad) { |
|
712 | var t = this.getXMLTopNode("menu"); |
|
713 | parentId = (t.getAttribute("parentId")!=null?t.getAttribute("parentId"):null); |
|
714 | if (parentId == null) { |
|
715 | // alert(1) |
|
716 | // main_self.idPrefix = main_self._genStr(12); |
|
717 | main_self._buildMenu(t, null); |
|
718 | main_self._initTopLevelMenu(); |
|
719 | } else { |
|
720 | main_self._buildMenu(t, main_self.idPrefix+parentId); |
|
721 | main_self._addSubMenuPolygon(main_self.idPrefix+parentId, main_self.idPrefix+parentId);//, main_self.idPull[main_self.idPrefix+parentId]); |
|
722 | if (main_self.menuSelected == main_self.idPrefix+parentId) { |
|
723 | var pId = main_self.idPrefix+parentId; |
|
724 | var isTop = main_self.itemPull[main_self.idPrefix+parentId]["parent"]==main_self.idPrefix+main_self.topId; |
|
725 | var level = ((isTop&&(!main_self.context))?main_self.dirTopLevel:main_self.dirSubLevel); |
|
726 | var isShow = false; |
|
727 | if (isTop && main_self.menuModeTopLevelTimeout && main_self.menuMode == "web" && !main_self.context) { |
|
728 | var item = main_self.idPull[main_self.idPrefix+parentId]; |
|
729 | if (item._mouseOver == true) { |
|
730 | var delay = main_self.menuModeTopLevelTimeoutTime - (new Date().getTime()-item._dynLoadTM); |
|
731 | if (delay > 1) { |
|
732 | item._menuOpenTM = window.setTimeout(function(){ main_self._showPolygon(pId, level); }, delay); |
|
733 | isShow = true; |
|
734 | } |
|
735 | } |
|
736 | } |
|
737 | if (!isShow) { main_self._showPolygon(pId, level); } |
|
738 | } |
|
739 | main_self.itemPull[main_self.idPrefix+parentId]["loaded"] = "yes"; |
|
740 | // console.log(main_self.loaderIcon) |
|
741 | if (main_self.loaderIcon == true) { main_self._updateLoaderIcon(main_self.idPrefix+parentId, false); } |
|
742 | } |
|
743 | this.destructor(); |
|
744 | main_self.callEvent("onXLE",[]); |
|
745 | } else { |
|
746 | var t = this.getXMLTopNode("menu"); |
|
747 | // alert(3) |
|
748 | // main_self.idPrefix = main_self._genStr(12); |
|
749 | main_self._buildMenu(t, null); |
|
750 | main_self.init(); |
|
751 | main_self.callEvent("onXLE",[]); |
|
752 | main_self._doOnLoad(); |
|
753 | } |
|
754 | } |
|
755 | this._xmlLoader = new dtmlXMLLoaderObject(this._xmlParser, window); |
|
756 | /* show sublevel item */ |
|
757 | this._showSubLevelItem = function(id,back) { |