Home > Article > Web Front-end > A so-called sliding door implemented in js_javascript skills
Sliding Doors: I don’t understand why they are called that.
I will name it: JMenuTab, because I wrote it to be my menu.
The test passed under IE6 and FireFox.
JMenuTab 帮助: |
Author:xling Blog:http://xling.blueidea.com 2007/05/23 |
写这个程序只是为了解决燃眉之急(汉,虽然是急,我还是写了一天)! |
程序中用到图片是修改了网上现有图片,所以,外表和某些网站上的一样,请不要见怪。因为除了图片,全是原创(不曾参考任何类似程序)! |
IE6,Firefox下测试通过。 |
调用方法(注意顺序): |
var menuTab = new JMenuTab(null,null,"menuBar"); menuTab.create(); menuTab.addTab("首页"); menuTab.addTab("组织架构","page1"); menuTab.addTab("员工信息","page2"); menuTab.addTab("业务知识","page3"); menuTab.addTab("Help","pageHelp"); menuTab.setActiveTab(2); |