Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var tabContainers = $("div.tabs div.tabContainer");
- $("div.tabs ul.tabNavigation a").click(function() {
- tabContainers.hide().filter(this.hash).show();
- $("div.tabs ul.tabNavigation a").removeClass("selected");
- $(this).addClass('selected');
- $(".tabContainer").css("opacity","0");
- $(this).find(".tabContainer").fadeIn("fast", function(){
- //you can add it here
- if ($.browser.msie){this.style.removeAttribute("filter");}
- });
- // no need to animate again i think
- $(".tabContainer").animate({
- opacity: 1
- });
- // $(".tabContainer").css("filter","none"); -> this seem to work in IE but then there is no fading anymore
- return false;
- }).filter(":first").click();
- });
Add Comment
Please, Sign In to add comment