Guest User

Untitled

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