Template:Team:HokkaidoU Japan/Extra Materials/JS

From 2014.igem.org

(Difference between revisions)
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/a/a4/HokkaidoU_Materials_as_off', 'https://static.igem.org/mediawiki/2014/1/16/HokkkaidoU_Materials_mRNA_on'));
+
         $(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/a/a4/HokkaidoU_Materials_as_off));
+
             $(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));
         }
         }
   });
   });

Revision as of 15:49, 17 October 2014