Template:Team:HokkaidoU Japan/Extra Materials/JS

From 2014.igem.org

(Difference between revisions)
Line 3: Line 3:
$(function(){
$(function(){
-
     $('.materials-img').hover(function(){
+
     $('.materials-box').hover(function(){
         $(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'));
         $(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(){
Line 14: Line 14:
$(function(){
$(function(){
-
     $('.materials-img').hover(function(){
+
     $('.materials-box').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/5/59/HokkaidoU_Materials_asRNA_on'));
         $(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(){
Line 25: Line 25:
$(function(){
$(function(){
-
     $('.materials-img').hover(function(){
+
     $('.materials-box').hover(function(){
         $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/4/4c/HokkaidoU_Materials_Ribosome_off', 'https://static.igem.org/mediawiki/2014/7/7e/HokkaidoU_Materials_Ribosome_on'));
         $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/4/4c/HokkaidoU_Materials_Ribosome_off', 'https://static.igem.org/mediawiki/2014/7/7e/HokkaidoU_Materials_Ribosome_on'));
           }, function(){
           }, function(){

Revision as of 16:38, 17 October 2014