$(document).ready(function () { $.goup({ trigger: 100, bottomOffset: 150, locationOffset: 100, title: ' ', titleAsText: true }); }); $(document).ready(function(){ $('.navss').mousemove(function(){ $(this).find('.navs2').filter(':not(:animated)').slideDown("fast");//you can give it a speeds }); $('.navss').mouseleave(function(){ $(this).find('.navs2').slideUp("fast"); }); }); $(function(){ $('#demo01').flexslider({ animation: "slide", direction:"horizontal", easing:"swing", }); }); $(document).ready(function(){ $(".slidesy").poposlides(); }); function searchToggle(obj, evt){ var container = $(obj).closest('.search-wrapper'); if(!container.hasClass('active')){ container.addClass('active'); evt.preventDefault(); } else if(container.hasClass('active') && $(obj).closest('.input-holder').length == 0){ container.removeClass('active'); // clear input container.find('.search-input').val(''); // clear and hide result container when we press close container.find('.result-container').fadeOut(100, function(){$(this).empty();}); } } function submitFn(obj, evt){ value = $(obj).find('.search-input').val().trim(); _html = " "; if(!value.length){ _html = "请输入检索内容"; } else{ _html += "" + value + ""; } $(obj).find('.result-container').html('' + _html + ''); $(obj).find('.result-container').fadeIn(100); evt.preventDefault(); }