|
<script type="text/javascript">
var oMenu = new YAHOO.widget.MenuBar(
"menuunit_1",
{
autosubmenudisplay: true,
hidedelay: 750,
lazyload: true
}
);
oMenu.beforeRenderEvent.subscribe(function () {
var oSubmenuData = {
"SQL1": [
{
text: "楽じゃない空間",
url: "http://lightbox.on.coocan.jp/",
target: "_blank"
},
{
text: "RunDLL32.EXE 抜粋",
url: "http://winofsql.jp/pinpoint/rundll32.htm",
disabled: true,
target: "_blank"
}
],
"SQL2": [
{
text: "PHP : リコンパイルバージョン",
url: "http://homepage2.nifty.com/lightbox/php.chm",
target: "_blank"
},
{
text: " ",
url: "#",
disabled: true
},
{ text: "IT用語辞典", submenu: { id: "outerlink", itemdata: [
{
text: "資料室",
url: "http://e-words.jp/p/r.html",
target: "_blank"
},
{
text: "HTMLの特殊文字",
url: "http://e-words.jp/p/r-htmlentity.html",
target: "_blank"
},
{ text: "IT用語辞典", submenu: { id: "outerlink2", itemdata: [
{
text: "資料室",
url: "http://e-words.jp/p/r.html",
target: "_blank"
},
{
text: "HTMLの特殊文字",
url: "http://e-words.jp/p/r-htmlentity.html",
target: "_blank"
}
] } },
] } }
],
"SQL3": [
{
text: "ASP と PHP の処理比較",
url: "http://winofsql.jp/pinpoint/vbscriptphpframe.htm",
target: "_blank"
},
{
text: "VBScript の真偽比較表",
url: "http://winofsql.jp/pinpoint/vbscripttruefalse.htm",
target: "_blank"
}
]
};
this.getItem(0).cfg.setProperty("submenu",
{ id: "SQL1", itemdata: oSubmenuData["SQL1"] });
this.getItem(1).cfg.setProperty("submenu",
{ id: "SQL2", itemdata: oSubmenuData["SQL2"] });
this.getItem(2).cfg.setProperty("submenu",
{ id: "SQL3", itemdata: oSubmenuData["SQL3"] });
});
oMenu.render();
</script>
| |