Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($) {
- var timer;
- $(document).ready(function() {
- $('li.static.dynamic-children').unbind('mouseover').unbind('mouseout');
- $('li.static.dynamic-children').hover(function () {
- var li = $(this);
- li.css({ 'position': 'relative', 'z-index': '100' });
- li.find('ul.dynamic').css({ 'left': '-1px', 'top': '25px' });
- li.find('ul.dynamic').hide();
- timer = setTimeout(function () {
- li.find('ul.dynamic').show('fast');
- }, 1000);
- }, function () {
- clearTimeout(timer);
- var li = $(this);
- li.css({ 'position': 'absolute', 'z-index': '0' });
- li.find('ul.dynamic').css({ 'left': '-999em', 'top': '0px' });
- });
- });
- }(jQuery));
Add Comment
Please, Sign In to add comment