Template:Team:HokkaidoU Japan/Extra Materials/JS
From 2014.igem.org
(Difference between revisions)
(Created page with "<html> <script type="text/javascript"> $(function(){ $('.materials-img').hover(function(){ $(this).attr('src', $(this).attr('src').replace('https://2014.igem.org/wik...") |
|||
Line 4: | Line 4: | ||
$(function(){ | $(function(){ | ||
$('.materials-img').hover(function(){ | $('.materials-img').hover(function(){ | ||
- | $(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/a/a4/HokkaidoU_Materials_as_off', 'https://static.igem.org/mediawiki/2014/1/16/HokkkaidoU_Materials_mRNA_on')); |
}, function(){ | }, function(){ | ||
if (!$(this).hasClass('currentPage')) { | if (!$(this).hasClass('currentPage')) { | ||
- | $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/1/16/HokkkaidoU_Materials_mRNA_on', 'https://static.igem.org/mediawiki/2014/ | + | $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/1/16/HokkkaidoU_Materials_mRNA_on', 'https://static.igem.org/mediawiki/2014/a/a4/HokkaidoU_Materials_as_off)); |
} | } | ||
}); | }); |
Revision as of 15:47, 17 October 2014