Template:Team:HokkaidoU Japan/About Us/JS
From 2014.igem.org
(Difference between revisions)
Line 60: | Line 60: | ||
$(function(){ | $(function(){ | ||
$('#osamu').hover(function(){ | $('#osamu').hover(function(){ | ||
- | $(this).attr('src', $(this).attr('src').replace(' | + | $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/d/df/HokkaidoU_Member_horiguchi_off.jpg', 'https://static.igem.org/mediawiki/2014/3/38/HokkaidoU_Member_horiguchi_on.jpg')); |
}, function(){ | }, function(){ | ||
if (!$(this).hasClass('currentPage')) { | if (!$(this).hasClass('currentPage')) { | ||
- | $(this).attr('src', $(this).attr('src').replace(' | + | $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/3/38/HokkaidoU_Member_horiguchi_on.jpg', 'https://static.igem.org/mediawiki/2014/d/df/HokkaidoU_Member_horiguchi_off.jpg')); |
} | } | ||
}); | }); |
Revision as of 08:28, 9 October 2014