$(".main-navigation li").hover(function(){ var itemwidth = $(this).width(); /* Getting the LI width */ $(this).prepend("
"); /* Inserting a blank div into within li above the tag*/ $(this).find("div").fadeIn('10000').css({ 'width' : itemwidth}); /* Using the itemwidth for the div to display properly*/ $(this).find("ul").fadeIn('1000').slideDown('10000').css("display", "block"); },function(){ $(this).find("div").slideUp('1000').fadeOut('1000');/* sliding up and fading out the hover div */ $(this).find("div").remove();/* removing the code from html at every mouseout event*/ $(this).find("ul").fadeOut('1000'); /* fading out the sub menu */ }); $(".search-input").focus(function(){ $(this).animate({width:'180px'}, 500); /* on focus, increasing the input width of search to left side*/ }); $(".search-input").focusout(function(){ $(this).animate({width:'117px'}, 500); /* on focus, decreasing the input width of search to left side*/ });
文件目录······
暂无数据
猜你喜欢
更多»
项目推荐
更多»
PDF电子书
更多»
Java多线程编程核心技术
(2)
Linux命令详解词典.pdf
(5)
深入Python3中文版
(0)
百度SEO一本通.pdf
(0)
mysql必知必会.pdf
(2)
疯狂JAVA讲义 pdf电子书
(3)
C# 图解教程pdf电子书
(3)
研磨设计模式 pdf电子书
(0)