Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- $(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