Template:Team:HokkaidoU Japan/About Us/JS
From 2014.igem.org
(Difference between revisions)
Line 59: | Line 59: | ||
$(function(){ | $(function(){ | ||
- | $(' | + | $('.show').hover(function(){ |
- | $(this).attr('src', $(this).attr('src').replace(' | + | $(this).attr('src', $(this).attr('src').replace('_off', '_on.')); |
}, function(){ | }, function(){ | ||
if (!$(this).hasClass('currentPage')) { | if (!$(this).hasClass('currentPage')) { | ||
- | $(this).attr('src', $(this).attr('src').replace(' | + | $(this).attr('src', $(this).attr('src').replace('_on', '_off')); |
} | } | ||
}); | }); |
Revision as of 08:36, 9 October 2014