Team:NYMU-Taipei/menu.js
From 2014.igem.org
(Difference between revisions)
Hiwang123 (Talk | contribs)
(Created page with "$( document ).ready(function() { $('#menu>ul>li') .on('mouseover', function(){ clearTimeout($.data(this,'timer')); $('#menu>ul>li>ul',this).stop...")
Newer edit →
(Created page with "$( document ).ready(function() { $('#menu>ul>li') .on('mouseover', function(){ clearTimeout($.data(this,'timer')); $('#menu>ul>li>ul',this).stop...")
Newer edit →
Revision as of 13:58, 2 June 2014
$( document ).ready(function() {
$('#menu>ul>li') .on('mouseover', function(){ clearTimeout($.data(this,'timer')); $('#menu>ul>li>ul',this).stop(true,true).slideDown(200); }) .on('mouseout', function(){ $.data(this,'timer', setTimeout($.proxy(function() { $('#menu>ul>li>ul',this).stop(true,true).slideUp(200); }, this), 100)); });
});