三生石上 8e116609c6 v4.2.0
2015-05-19 14:45:47 +08:00

34 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="leftmenu.aspx.cs" Inherits="FineUI.Examples.iframe.topmenu3.leftmenu" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="leftAccordion" runat="server"></f:PageManager>
<f:Accordion runat="server" ShowBorder="false" ShowHeader="false"
ID="leftAccordion">
</f:Accordion>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="./data/menuMail.xml"></asp:XmlDataSource>
</form>
<script src="../../res/js/jquery.min.js" type="text/javascript"></script>
<script>
var leftAccordionID = '<%= leftAccordion.ClientID %>';
F.ready(function () {
// 首先获取手风琴控件第一个面板中的树控件
var tree = F(leftAccordionID).items.get(0).items.get(0);
var treeFirstChild = tree.getRootNode().firstChild;
// 选中第一个链接节点并在右侧IFrame中打开此链接
tree.getSelectionModel().select(treeFirstChild);
parent.window.frames['mainframe'].location.href = treeFirstChild.data.href;
});
</script>
</body>
</html>