Template:Team:HokkaidoU Japan/About Us/JS

From 2014.igem.org

(Difference between revisions)
 
(22 intermediate revisions not shown)
Line 23: Line 23:
});
});
-
//一行目
+
/*
$(".show").slice(2, 8).hover(function(){
$(".show").slice(2, 8).hover(function(){
     $("#tori,#mami,#tamaro,#sanbon,#saitoh,#liu").stop().animate({"top": "200px"}, 500);
     $("#tori,#mami,#tamaro,#sanbon,#saitoh,#liu").stop().animate({"top": "200px"}, 500);
Line 40: Line 40:
});
});
-
//二行目
 
$(".show").slice(8, 14).hover(function(){
$(".show").slice(8, 14).hover(function(){
     $("#shehata").stop().animate({"top": "200px"}, 500);
     $("#shehata").stop().animate({"top": "200px"}, 500);
Line 57: Line 56:
});
});
 +
*/
 +
$(function(){
 +
    $('.show').hover(function(){
 +
        $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/d/df/HokkaidoU_Member_horiguchi_off', 'https://static.igem.org/mediawiki/2014/3/38/HokkaidoU_Member_horiguchi_on'));
 +
          }, function(){
 +
            if (!$(this).hasClass('currentPage')) {
 +
            $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/3/38/HokkaidoU_Member_horiguchi_on', 'https://static.igem.org/mediawiki/2014/d/df/HokkaidoU_Member_horiguchi_off'));
 +
        }
 +
  });
 +
});
 +
 +
 +
 +
$(function(){
 +
    $('.show').hover(function(){
 +
        $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/d/d6/HokkaidoU_Member_tamaro_off', 'https://static.igem.org/mediawiki/2014/a/a8/HokkaidoU_Member_tamaro_on'));
 +
          }, function(){
 +
            if (!$(this).hasClass('currentPage')) {
 +
            $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/a/a8/HokkaidoU_Member_tamaro_on', 'https://static.igem.org/mediawiki/2014/d/d6/HokkaidoU_Member_tamaro_off'));
 +
        }
 +
  });
 +
});
 +
 +
 +
$(function(){
 +
    $('.show').hover(function(){
 +
        $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/6/60/HokkaidoU_Member_shimoyama_off', 'https://static.igem.org/mediawiki/2014/2/22/HokkaidoU_Member_shimoyama_on'));
 +
          }, function(){
 +
            if (!$(this).hasClass('currentPage')) {
 +
            $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/2/22/HokkaidoU_Member_shimoyama_on', 'https://static.igem.org/mediawiki/2014/6/60/HokkaidoU_Member_shimoyama_off'));
 +
        }
 +
  });
 +
});
 +
 +
$(function(){
 +
    $('.show').hover(function(){
 +
        $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/4/44/HokkaidoU_Member_Itoh_off', 'https://static.igem.org/mediawiki/2014/f/f5/HokkaidoU_Member_Itoh_on'));
 +
          }, function(){
 +
            if (!$(this).hasClass('currentPage')) {
 +
            $(this).attr('src', $(this).attr('src').replace('https://static.igem.org/mediawiki/2014/f/f5/HokkaidoU_Member_Itoh_on', 'https://static.igem.org/mediawiki/2014/4/44/HokkaidoU_Member_Itoh_off'));
 +
        }
 +
  });
 +
});
</script>
</script>
</html>
</html>

Latest revision as of 21:05, 17 October 2014