Template:Team:HokkaidoU Japan/About Us/JS
From 2014.igem.org
(Difference between revisions)
Line 94: | Line 94: | ||
if (!$(this).hasClass('currentPage')) { | if (!$(this).hasClass('currentPage')) { | ||
$(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/2/22/HokkaidoU_Member_shimoyama_on', 'https://static.igem.org/mediawiki/2014/6/60/HokkaidoU_Member_shimoyama_off')); | $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/2/22/HokkaidoU_Member_shimoyama_on', 'https://static.igem.org/mediawiki/2014/6/60/HokkaidoU_Member_shimoyama_off')); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | $(function(){ | ||
+ | $('.show').hover(function(){ | ||
+ | $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/4/44/HokkaidoU_Member_Itoh_off', 'https://static.igem.org/mediawiki/2014/3/31/HokkaidoU_Mmeber_Itoh_on.jpg')); | ||
+ | }, function(){ | ||
+ | if (!$(this).hasClass('currentPage')) { | ||
+ | $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/3/31/HokkaidoU_Mmeber_Itoh_on.jpg', 'https://static.igem.org/mediawiki/2014/4/44/HokkaidoU_Member_Itoh_off')); | ||
} | } | ||
}); | }); |
Revision as of 15:28, 15 October 2014