Skip to content

Instantly share code, notes, and snippets.

@buzzedword
Created October 18, 2010 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buzzedword/633066 to your computer and use it in GitHub Desktop.
Save buzzedword/633066 to your computer and use it in GitHub Desktop.
//Gallery Thumbs
    $("div.thumbs > a").click(function (e){
        $("div.thumbs > a").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".gallery_content").hide(); //Hide all tab content
        
var activeTab = $(this).attr("href"); //Find the rel attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active content
setTimeout(function () {          
Cufon.refresh();          
anchor_fix()        
}, 150);
e.preventDefault();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment