$(function(){ if($.browser.msie && $.browser.version<8){ return; }else if($.browser.msie && ($.browser.version == "7.0") ){ return; }else{ // navfade(); } //toggleLink(); // bannerTop(); }); function navfade(){ var navUl = $(".nav").children("ul"); var navLi = navUl.children("li"); $.each(navLi, function () { $(this).hover(function () { $(this).children("ul").stop().css({"display":"none"}).slideToggle(250); }, function () { $(this).children("ul").stop().css({"display":"block"}).slideToggle(250); } ); }); } function toggleLink(){ var linkP = $(".friend-link").children("p"); console.log(linkP); var linkUl = $(".friend-link").children("ul"); $.each(linkP, function () { $(this).on('click', function () { $(this).next("ul").stop().slideToggle(250); }) // $(this).hover(function () { // $(this).next("ul").stop().css({"display":"none"}).slideToggle(250); // }, function () { // $(this).next("ul").stop().css({"display":"block"}).slideToggle(250); // } // ); }); } /*function bannerTop(){ var unslider1 = $('.banner').unslider({ speed: 800, // The speed to animate each slide (in milliseconds) delay: 5000, // The delay between slide animations (in milliseconds) loop: true, //complete: function() {}, // A function that gets called after every slide animation keys: true // Enable keyboard (left, right) arrow shortcuts //dots: false, // Display dot navigation //fluid: false // Support responsive design. May break non-responsive designs }); data = unslider1.data('unslider'); $('.unslider_arl').click(function() { var fn = this.className.split(' ')[1]; data[fn](); }); } */