Return to Snippet

Revision: 20734
at November 24, 2009 07:13 by bionickid


Updated Code
/*-- Fleshgordon does a SuckerFish Nav --*/

$(document).ready(function(){
    $("#nav li").hover(
        function(){ $("ul", this).css("height", "auto").stop().slideDown("fast"); }, 
        function() {  $("ul", this).stop().slideUp("fast"); } 
    );
    $("#nav ul").hide();
});

Revision: 20733
at November 24, 2009 07:13 by bionickid


Updated Code
/*-- Fleshgordon does a SuckerFish Nav --*/

$(document).ready(function(){
    $("#nav li").hover(
        function(){ $("ul", this).stop().slideDown("fast"); }, 
        function() {  $("ul", this).stop().slideUp("fast"); } 
    );
    $("#nav ul").hide();
});

Revision: 20732
at November 24, 2009 07:11 by bionickid


Updated Code
/*-- Fleshgordon does a SuckerFish Nav --*/

$(document).ready(function(){
    $("#nav li").hover(
        function(){ $("ul", this).css("height", "auto").stop().slideDown("fast"); }, 
        function() {  $("ul", this).stop().slideUp("fast"); } 
    );
    if (document.all) {
        $("#nav li").hoverClass ("sfHover");
    }
  $("#nav ul").hide();
});

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};

Revision: 20731
at November 24, 2009 05:08 by bionickid


Initial Code
/*-- Fleshgordon does a SuckerFish Nav --*/

$(document).ready(function(){
    $("#nav li").hover(
        function(){ $("ul", this).stop().slideDown("fast"); }, 
        function() {  $("ul", this).stop().slideUp("fast"); } 
    );
    if (document.all) {
        $("#nav li").hoverClass ("sfHover");
    }
  $("#nav ul").hide();
});

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};

Initial URL


Initial Description


Initial Title
Suckerfish nav reloaded

Initial Tags
javascript, jquery

Initial Language
jQuery