Team:Bard-Annandale/java
From 2011.igem.org
(Difference between revisions)
Line 7: | Line 7: | ||
<title>Slashdot's Menu</title> | <title>Slashdot's Menu</title> | ||
- | <link rel="stylesheet" type="text/css" | + | <link rel="stylesheet" type="text/css" http://www.dynamicdrive.com/dynamicindex1/sdmenu/sdmenu.css" /> |
- | <script type="text/javascript" src="sdmenu/sdmenu.js"> | + | <script type="text/javascript" src="http://www.dynamicdrive.com/dynamicindex1/sdmenu/sdmenu.js"> |
/*********************************************** | /*********************************************** |
Revision as of 07:53, 28 September 2011
var myMenu = new SDMenu("main_menu"); // ID of the menu element // Default values... myMenu.speed = 3; // Menu sliding speed (1 - 5 recomended) myMenu.remember = true; // Store menu states (expanded or collapsed) in cookie and restore later myMenu.oneSmOnly = false; // One expanded submenu at a time myMenu.markCurrent = true; // Mark current link / page (link.href == location.href) myMenu.init(); // Additional methods... var firstSubmenu = myMenu.submenus[0]; myMenu.expandMenu(firstSubmenu); // Expand a submenu myMenu.collapseMenu(firstSubmenu); // Collapse a menu myMenu.toggleMenu(firstSubmenu); // Expand if collapsed and collapse if expanded myMenu.expandAll(); // Expand all submenus myMenu.collapseAll(); // Collapse all submenus
Download: sdmenu.zip