Template:Team:HokkaidoU Japan/javascripts

From 2012.igem.org

(Difference between revisions)
 
(6 intermediate revisions not shown)
Line 1: Line 1:
-
<!--
 
-
{{Team:HokkaidoU_Japan/javascripts/layout.js}}
 
-
{{Team:HokkaidoU_Japan/javascripts/accordion.js}}
 
-
{{Team:HokkaidoU_Japan/javascripts/notebook.js}}
 
-
-->
 
-
 
<html>
<html>
 +
<script type="text/javascript">
 +
 +
  var _gaq = _gaq || [];
 +
  _gaq.push(['_setAccount', 'UA-33361926-1']);
 +
  _gaq.push(['_trackPageview']);
 +
 +
  (function() {
 +
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 +
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 +
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 +
  })();
 +
 +
</script>
<script type="text/javascript">
<script type="text/javascript">
   $(function(){
   $(function(){
Line 15: Line 22:
     $('#hokkaidou-index-cross1').hover(
     $('#hokkaidou-index-cross1').hover(
       function(){
       function(){
-
         $('.hokkaidou-index-image-cross1:not(:animated)').fadeToggle();
+
         $('.hokkaidou-index-image-cross1').animate({opacity: 'toggle'}, function(){
 +
          $('#hokkaidou-index-wet1').css('display', 'none');
 +
          $('#hokkaidou-index-wet2').css('display', 'block');
 +
          $('#hokkaidou-index-wet3').css('display', 'none');
 +
        });
       },
       },
       function(){
       function(){
-
         $('.hokkaidou-index-image-cross1:not(:animated)').fadeToggle();
+
         $('.hokkaidou-index-image-cross1:not(:animated)').animate({opacity: 'toggle'}, function(){
 +
          $('#hokkaidou-index-wet1').css('display', 'block');
 +
          $('#hokkaidou-index-wet2').css('display', 'none');
 +
          $('#hokkaidou-index-wet3').css('display', 'none');
 +
        });
       }
       }
     );
     );
     $('#hokkaidou-index-cross2').hover(
     $('#hokkaidou-index-cross2').hover(
       function(){
       function(){
-
         $('.hokkaidou-index-image-cross2:not(:animated)').fadeToggle();
+
         $('.hokkaidou-index-image-cross2').animate({opacity: 'toggle'}, function(){
 +
          $('#hokkaidou-index-wet1').css('display', 'none');
 +
          $('#hokkaidou-index-wet2').css('display', 'none');
 +
          $('#hokkaidou-index-wet3').css('display', 'block');
 +
        });
       },
       },
       function(){
       function(){
-
         $('.hokkaidou-index-image-cross2:not(:animated)').fadeToggle();
+
         $('.hokkaidou-index-image-cross2:not(:animated)').animate({opacity: 'toggle'}, function(){
 +
          $('#hokkaidou-index-wet1').css('display', 'block');
 +
          $('#hokkaidou-index-wet2').css('display', 'none');
 +
          $('#hokkaidou-index-wet3').css('display', 'none');
 +
        });
       }
       }
     );
     );
 +
    $('.hokkaidou-notebook-daily > h3').click(function(e){
 +
      $(this).next('div.hokkaidou-section').slideToggle();
 +
    });
   });
   });
</script>
</script>
</html>
</html>

Latest revision as of 01:30, 27 September 2012