Template:Team:KIT-Kyoto/hp
From 2014.igem.org
(Difference between revisions)
(2 intermediate revisions not shown) | |||
Line 4: | Line 4: | ||
$(".hp_img_link a").hover(function(){ | $(".hp_img_link a").hover(function(){ | ||
var hpnum = $(".hp_img_link a").index(this); | var hpnum = $(".hp_img_link a").index(this); | ||
- | $(".hp_img").eq(hpnum).stop().animate({"width":"100px","height":"100px","margin-left":"-22px","margin-top":"-30px"},100,'linear').css({"border-radius":"100px","-webkit-border-radius":"100px","-moz-border-radius":"100px"}); | + | $(".hp_img").eq(hpnum).stop(true,false).animate({"width":"100px","height":"100px","margin-left":"-22px","margin-top":"-30px"},100,'linear').css({"border-radius":"100px","-webkit-border-radius":"100px","-moz-border-radius":"100px"}); |
}, | }, | ||
function(){ | function(){ | ||
var hpnum = $(".hp_img_link a").index(this); | var hpnum = $(".hp_img_link a").index(this); | ||
- | $(".hp_img").eq(hpnum).stop().animate({"width":"60px","height":"60px","margin-left":"-2px","margin-top":"-10px"},100,'linear').css({"border-radius":"60px","-webkit-border-radius":"60px","-moz-border-radius":"60px"}); | + | $(".hp_img").eq(hpnum).stop(true,false).animate({"width":"60px","height":"60px","margin-left":"-2px","margin-top":"-10px"},100,'linear').css({"border-radius":"60px","-webkit-border-radius":"60px","-moz-border-radius":"60px"}); |
}); | }); | ||
}); | }); | ||
Line 115: | Line 115: | ||
} | } | ||
- | var loop3 = setInterval( | + | var loop3 = setInterval(slide3,5000); |
function slide3() { | function slide3() { | ||
var clone = $(".pic3 li:first").clone(true); | var clone = $(".pic3 li:first").clone(true); |
Latest revision as of 13:10, 1 October 2014