Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 13: Line 13:
   })();
   })();
         $(function() {
         $(function() {
-
/**
+
-
* the menu
+
-
*/
+
var $menu = $('#ldd_menu');
var $menu = $('#ldd_menu');
-
/**
+
-
* for each list element,
+
-
* we show the submenu when hovering and
+
-
* expand the span element (title) to 510px
+
-
*/
+
$menu.children('li').slice(1,3).each(function(){
$menu.children('li').slice(1,3).each(function(){
var $this = $(this);
var $this = $(this);

Revision as of 09:18, 5 October 2014