Template:Team:HokkaidoU Japan/About Us/JS

From 2014.igem.org

(Difference between revisions)
Line 84: Line 84:
             if (!$(this).hasClass('currentPage')) {
             if (!$(this).hasClass('currentPage')) {
             $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/a/a8/HokkaidoU_Member_tamaro_on', 'https://static.igem.org/mediawiki/2014/d/d6/HokkaidoU_Member_tamaro_off'));
             $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/a/a8/HokkaidoU_Member_tamaro_on', 'https://static.igem.org/mediawiki/2014/d/d6/HokkaidoU_Member_tamaro_off'));
 +
        }
 +
  });
 +
});
 +
 +
$(function(){
 +
    $('.show').hover(function(){
 +
        $(this).attr('src', $(this).attr('src').replace('https://2014.igem.org/File:HokkaidoU_Member_shimoyama_off', 'https://static.igem.org/mediawiki/2014/2/22/HokkaidoU_Member_shimoyama_on'));
 +
          }, function(){
 +
            if (!$(this).hasClass('currentPage')) {
 +
            $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/2/22/HokkaidoU_Member_shimoyama_on', 'https://2014.igem.org/File:HokkaidoU_Member_shimoyama_off'));
         }
         }
   });
   });

Revision as of 14:17, 15 October 2014