Blame view

js/tabs_product.js 1.66 KB
42868d70   andryeyev   Создал GIT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  $(document).ready(function() {
  
          //Default Action
          $(".tab_content7").hide(); //Hide all content
          $("ul#list7 li:first").addClass("active").show(); //Activate first tab
          $(".tab_content7:first").show(); //Show first tab content
  
          //On Click Event
          $("ul#list7 li").click(function() {
                  $("ul#list7 li").removeClass("active"); //Remove any "active" class
                  $(this).addClass("active"); //Add "active" class to selected tab
                  $(".tab_content7").hide(); //Hide all tab content
                  var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
                  $(activeTab).fadeIn(); //Fade in the active content
                  return false;
          });
  		
  		$(".link_video").click(function() {
  			$("#tab34").click();
  			return false;
  		});
  
  });
  
  $(document).ready(function() {
  
          //Default Action
          $(".tab_content5").hide(); //Hide all content
          $("ul#list5 li:first").addClass("active").show(); //Activate first tab
          $(".tab_content5:first").show(); //Show first tab content
  
          //On Click Event
          $("ul#list5 li").click(function() {
                  $("ul#list5 li").removeClass("active"); //Remove any "active" class
                  $(this).addClass("active"); //Add "active" class to selected tab
                  $(".tab_content5").hide(); //Hide all tab content
                  var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
                  $(activeTab).fadeIn(); //Fade in the active content
                  return false;
          });
  
  });