Created
May 12, 2010 19:01
-
-
Save ryanflorence/399006 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#pane').tabs({tab: 'a', content: '.section'}); | |
// add some events after creating an instance | |
$('#pane').tabs('addEvent', 'show', function(){ | |
$(document.body).toggleClass('toggle'); | |
}); | |
$('#pane1').ajaxTabs({ | |
tab: 'a', | |
content: '.section', | |
loadingHTML: '<p class=loading>Loading<br><br><img src=loading.gif></p>', | |
// or add some events in your options when you first create the instance | |
onShow: function(){ | |
this.container.css('opacity',0.5); | |
}, | |
onAjaxComplete: function(){ | |
this.container.css('opacity',''); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment