private string GetChildScript(ArrayList m_Items, string m_strIndex) { string text = ""; string text2 = ""; string text3 = "_MenuIFrame" + m_strIndex; text = ((((((((text + "<Script Language=\"JavaScript\">") + "MenuList[MenuList.length]=\"" + m_strIndex + "\";") + text3 + ".document.clear();") + text3 + ".document.open();") + text3 + ".document.write(\"") + "<html>") + "<LINK href=\\\"" + this.CssFile + "\\\" type=\\\"text/css\\\" rel=\\\"stylesheet\\\">") + "<body bottomMargin=\\\"0\\\" leftMargin=\\\"0\\\" topMargin=\\\"0\\\" rightMargin=\\\"0\\\">") + "<table class=\\\"MenuPanel\\\" id=\\\"Table" + m_strIndex + "\\\" cellSpacing=\\\"0\\\" cellPadding=\\\"3\\\">"; for (int i = 0; i < m_Items.Count; i++) { RmsPM.WebControls.MainMenu.ItemInfo info = (RmsPM.WebControls.MainMenu.ItemInfo)m_Items[i]; string text5 = text + "<tr>"; text = ((text5 + "<td onmouseover=\\\"DisplayMenuItem('" + m_strIndex + "_" + i.ToString() + "',this);\\\" onmouseup=\\\"" + info.Event + ";ClearMenu();\\\">") + info.Text) + "</td>" + "</tr>"; } return((((((((text + "</table>") + "</body></html>" + "<Script Language=\\\"JavaScript\\\">") + "function DisplayMenuItem(sIndex,obj){" + "window.parent.frames.DisplayMenuItem(sIndex,obj);") + "}" + "function ClearMenu(){") + "window.parent.frames.ClearMenu();" + "}") + @"<\/Script>" + "\");") + text3 + ".document.close();") + "</Script>" + text2); }
private string GetLayerHtml(ArrayList m_Items, string m_strIndex) { string text = ""; string text2 = ""; for (int i = 0; i < m_Items.Count; i++) { string text3 = (m_strIndex == "") ? i.ToString() : (m_strIndex + "_" + i.ToString()); RmsPM.WebControls.MainMenu.ItemInfo info = (RmsPM.WebControls.MainMenu.ItemInfo)m_Items[i]; string text5 = text2; text2 = ((text5 + "<div id=\"_MenuDiv" + text3 + "\" style=\"display:none;top:0px;left:0px;position:absolute;overflow: visible;z-index:" + this.g_iZIndex.ToString() + "\">") + "<iframe id=\"_MenuIFrame" + text3 + "\" scrolling=\"no\" frameborder=\"0\" src=\"about:blank\"></iframe>") + "</div>" + this.GetChildScript(info, text3); if (info.Count > 0) { text = text + this.GetLayerHtml(info, text3); } } return(text2 + text); }