Template:Team:HokkaidoU Japan/About Us/JS
From 2014.igem.org
(Difference between revisions)
Line 74: | Line 74: | ||
if (!$(this).hasClass('currentPage')) { | if (!$(this).hasClass('currentPage')) { | ||
$(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/3/3b/HokkaidoU_Member_matsumura_on', 'https://static.igem.org/mediawiki/2014/4/43/HokkaidoU_Member_matsumura_off')); | $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/3/3b/HokkaidoU_Member_matsumura_on', 'https://static.igem.org/mediawiki/2014/4/43/HokkaidoU_Member_matsumura_off')); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | $(function(){ | ||
+ | $('.show').hover(function(){ | ||
+ | $(this).attr('src', $(this).attr('src').replace('ここにoffの画像アドレスを拡張子を外して書き込む', 'こっちにon')); | ||
+ | }, function(){ | ||
+ | if (!$(this).hasClass('currentPage')) { | ||
+ | $(this).attr('src', $(this).attr('src').replace('今度はこっちがon', 'off')); | ||
} | } | ||
}); | }); |
Revision as of 10:06, 14 October 2014