Template:Team:HokkaidoU Japan/About Us/JS

From 2014.igem.org

(Difference between revisions)
Line 79: Line 79:
   });
   });
});
});
-
 
+
$(function(){
 +
    $('.show').hover(function(){
 +
        $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/2/2b/HokkaidoU_Member_hata_off', 'https://static.igem.org/mediawiki/2014/b/bc/HokkaidoU_Member_hata_on'));
 +
          }, function(){
 +
            if (!$(this).hasClass('currentPage')) {
 +
            $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/b/bc/HokkaidoU_Member_hata_on', 'https://static.igem.org/mediawiki/2014/2/2b/HokkaidoU_Member_hata_off'));
 +
        }
 +
  });
 +
});
$(function(){
$(function(){
     $('.show').hover(function(){
     $('.show').hover(function(){

Revision as of 17:12, 17 October 2014