Template:Team:HokkaidoU Japan/Extra Materials/JS
From 2014.igem.org
(Difference between revisions)
Line 14: | Line 14: | ||
$(function(){ | $(function(){ | ||
$('.materials-img').hover(function(){ | $('.materials-img').hover(function(){ | ||
- | $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/c/cd/HokkaidoU_Materials_asRNA_off', 'https://static.igem.org/mediawiki/2014/ | + | $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/c/cd/HokkaidoU_Materials_asRNA_off', 'https://static.igem.org/mediawiki/2014/5/59/HokkaidoU_Materials_asRNA_on')); |
}, function(){ | }, function(){ | ||
if (!$(this).hasClass('currentPage')) { | if (!$(this).hasClass('currentPage')) { | ||
- | $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/ | + | $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/5/59/HokkaidoU_Materials_asRNA_on', 'https://static.igem.org/mediawiki/2014/c/cd/HokkaidoU_Materials_asRNA_off')); |
} | } | ||
}); | }); |
Revision as of 16:07, 17 October 2014