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...") |
|||
(7 intermediate revisions not shown) | |||
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/c/cd/HokkaidoU_Materials_mRNA_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/c/cd/HokkaidoU_Materials_mRNA_off')); |
} | } | ||
}); | }); | ||
}); | }); | ||
+ | |||
$(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')); |
} | } | ||
}); | }); | ||
}); | }); | ||
+ | |||
$(function(){ | $(function(){ | ||
Line 31: | Line 33: | ||
}); | }); | ||
}); | }); | ||
+ | |||
+ | |||
+ | </script> | ||
+ | </html> |
Latest revision as of 16:41, 17 October 2014