Team:HZAU-China/Team
From 2013.igem.org
(Difference between revisions)
Line 79: | Line 79: | ||
<script> | <script> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
- | var changeH=$(".item- | + | var changeH=$(".item-t1").outerHeight();//变化的高度 |
$(".itemwrap .item").each(function(index){ | $(".itemwrap .item").each(function(index){ | ||
$(this).hover(function(){ | $(this).hover(function(){ | ||
//mouseenter代码段 | //mouseenter代码段 | ||
- | $(this).find(".item- | + | $(this).find(".item-t1").stop(true).animate({"margin-top":-changeH},300); |
},function(){ | },function(){ | ||
//mouseleave代码段 | //mouseleave代码段 | ||
- | $(this).find(".item- | + | $(this).find(".item-t1").stop(true).animate({"margin-top":0},300); |
}); | }); | ||
Revision as of 12:52, 12 September 2013