diji Menu 橫式選單

摘要:diji Menu 橫式選單

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/dojo/dijit/themes/tundra/tundra.css" />
<script language="JavaScript" type="text/javascript" src="/dojo/dojo/dojo.js" djConfig="parseOnLoad:true"></script>

<script language="JavaScript" type="text/javascript">
    dojo.require("dijit.MenuBar");
    dojo.require("dijit.PopupMenuBarItem");
    dojo.require("dijit.Menu");
    dojo.require("dijit.MenuItem");
    dojo.require("dijit.PopupMenuItem");
  //dojo.require("dijit.Menu");
dojo.require("dijit.Menu");
dojo.addOnLoad(
 function() {
  if (window.pub) {
            window.pub();
       }
       document.getElementById("MainMenu").style.display = "block";
       document.getElementById("MainMenu1").style.display = "block";
 }
);          
</script></head><div dojoType="dijit.MenuBar" id="MainMenu1" style="display:none"><div dojoType="dijit.PopupMenuBarItem"><span>頭家部落格</span>
<div dojoType="dijit.Menu">
<div dojoType="dijit.MenuItem">Milin </div> 
<div dojoType="dijit.MenuItem">C.Y. </div> 
</div></div><div dojoType="dijit.MenuBarItem"><span>HR談心坊</span>
<div dojoType="dijit.Menu">
</div></div><div dojoType="dijit.PopupMenuBarItem"><span>貼心管家</span>
<div dojoType="dijit.Menu">
<div dojoType="dijit.MenuItem">test1 </div> 
<div dojoType="dijit.MenuItem">test2 </div> 
</div></div></div>