<style>
table {font
td {height =
</style>
<body>
<span id="menus"></span>
<span id="view"></span>
</body>
<script for=pad event=onclick>
// 大類節點點擊響應
for(var i=
this
this
view
</script>
<script for=bar event=onclick>
// 小類節點點擊響應
view
</script>
<script>
/**
* 產生菜單的html代碼串
* 入口參數為菜單默認打開的大類號
*/
function menu(n) {
this
/**
* 參數數組
* 列
* 列
* 列
*/
new Array(
new Array(
new Array(
new Array(
new Array(
new Array(
new Array(
new Array(
new Array(
new Array(
new Array(
new Array(
new Array(
new Array(
);
this
this
this
this
this
var s = "<table border=
for(var i=
if(this
if(i >
s += "</table></td></tr>";
var vk = this
s += "<tr id=
}else
s += "<tr><td id=
}
s += "</table></td></tr></table>";
return s;
}
/*** 創建菜單 ***/
menus
</script>
From:http://tw.wingwit.com/Article/program/PHP/201311/20923.html