Team:Tsinghua/header
From 2011.igem.org
(Difference between revisions)
GuoQiangChen (Talk | contribs) |
GuoQiangChen (Talk | contribs) |
||
Line 37: | Line 37: | ||
$('li[id*="nav-"]').hover(function(){ | $('li[id*="nav-"]').hover(function(){ | ||
var dpad = 0; | var dpad = 0; | ||
- | + | dpad = round($(this).attr("offsetWidth")/10); | |
- | dpad = $(this). | + | |
- | + | ||
- | + | ||
- | + | ||
dpad = dpad + "px"; | dpad = dpad + "px"; | ||
$(this).animate({"fontSize": "22px", "paddingTop": "4px", "paddingLeft": dpad, "paddingRight": dpad}, 400, function(){ | $(this).animate({"fontSize": "22px", "paddingTop": "4px", "paddingLeft": dpad, "paddingRight": dpad}, 400, function(){ |
Revision as of 13:34, 17 August 2011