1234567891011121314151617181920212223242526272829 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>折叠菜单</title>
- <link rel="stylesheet" href="FoldingMenu.css">
- </head>
- <body>
- </body>
- </html>
- <script type="text/javascript" src="http://www.1473.cn/uform.js"></script>
- <script src="FoldingMenu.js"></script>
- <script type="text/javascript">
- var data = [
- { text: '菜单1', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5','子菜单6', '子菜单7', '子菜单8', '子菜单9', '子菜单10']} },
- { text: '菜单2', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
- { text: '菜单3', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
- { text: '菜单4', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
- { text: '菜单5', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
- { text: '菜单6', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
- { text: '菜单7', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
- { text: '菜单8', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
- ];
- U.Control.FoldMenu.CreateElement(data, document.body);
- </script>
|