Team:Tsinghua/header

From 2011.igem.org

(Difference between revisions)
Line 37: Line 37:
$('li[id*="nav-"]').hover(function(){
$('li[id*="nav-"]').hover(function(){
var dpad = 0;
var dpad = 0;
-
dpad = Math.round($(this).attr("offsetWidth")/10);
+
dpad = Math.round($(this).attr("offsetWidth")/20);
alert(dpad);
alert(dpad);
dpad = 25-dpad;
dpad = 25-dpad;

Revision as of 13:45, 17 August 2011