Template:Team:HokkaidoU Japan/About Us/JS

From 2014.igem.org

(Difference between revisions)
Line 64: Line 64:
             if (!$(this).hasClass('currentPage')) {
             if (!$(this).hasClass('currentPage')) {
             $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/3/38/HokkaidoU_Member_horiguchi_on', 'https://static.igem.org/mediawiki/2014/d/df/HokkaidoU_Member_horiguchi_off'));
             $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/3/38/HokkaidoU_Member_horiguchi_on', 'https://static.igem.org/mediawiki/2014/d/df/HokkaidoU_Member_horiguchi_off'));
 +
        }
 +
  });
 +
});
 +
 +
$(function(){
 +
    $('.show').hover(function(){
 +
        $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/4/43/HokkaidoU_Member_matsumura_off', 'https://2014.igem.org/File:HokkaidoU_Member_matsumura_on'));
 +
          }, function(){
 +
            if (!$(this).hasClass('currentPage')) {
 +
            $(this).attr('src', $(this).attr('src').replace('https://2014.igem.org/File:HokkaidoU_Member_matsumura_on', 'https://static.igem.org/mediawiki/2014/4/43/HokkaidoU_Member_matsumura_off'));
         }
         }
   });
   });

Revision as of 07:34, 12 October 2014