Guest User

Untitled

a guest
Jul 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. $(document).ready(function() {
  2.  
  3. var tabContainers = $("div.tabs div.tabContainer");
  4.  
  5. $("div.tabs ul.tabNavigation a").click(function() {
  6.  
  7. tabContainers.hide().filter(this.hash).show();
  8.  
  9. $("div.tabs ul.tabNavigation a").removeClass("selected");
  10. $(this).addClass('selected');
  11.  
  12. $(".tabContainer").css("opacity","0");
  13. $(this).find(".tabContainer").fadeIn("fast", function(){
  14. //you can add it here
  15. if ($.browser.msie){this.style.removeAttribute("filter");}
  16. });
  17. // no need to animate again i think
  18. $(".tabContainer").animate({
  19. opacity: 1
  20. });
  21. // $(".tabContainer").css("filter","none"); -> this seem to work in IE but then there is no fading anymore
  22.  
  23.  
  24. return false;
  25. }).filter(":first").click();
  26. });
Add Comment
Please, Sign In to add comment