Template:Team:HokkaidoU Japan/javascripts

From 2012.igem.org

(Difference between revisions)
Line 22: Line 22:
       },
       },
       function(){
       function(){
-
         $('.hokkaidou-index-image-cross1:not(:animated)').animate({opacity: 'toggle'});
+
         $('.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)').animate({opacity: 'toggle'});
+
         $('.hokkaidou-index-image-cross2:not(:animated)').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)').animate({opacity: 'toggle'});
+
         $('.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');
 +
        });
       }
       }
     );
     );

Revision as of 17:08, 26 September 2012