Team:Tsinghua/writenav
From 2010.igem.org
(Difference between revisions)
Line 39: | Line 39: | ||
inisize=9; | inisize=9; | ||
tarsize=11; | tarsize=11; | ||
+ | utarsize=11; | ||
inipadd=0; | inipadd=0; | ||
tarpadd=25; | tarpadd=25; | ||
+ | utarpadd=25; | ||
var anim; | var anim; | ||
animate = function() | animate = function() | ||
Line 74: | Line 76: | ||
} | } | ||
} | } | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
if(inisize<=tarsize) | if(inisize<=tarsize) | ||
{ | { | ||
Line 86: | Line 84: | ||
if(inipadd<=tarpadd) | if(inipadd<=tarpadd) | ||
{ | { | ||
- | node.childNodes[0].style.paddingLeft = inipadd + "px"; | + | node.childNodes[0].style.paddingLeft = inipadd+ "px"; |
node.childNodes[0].style.paddingRight = inipadd + "px"; | node.childNodes[0].style.paddingRight = inipadd + "px"; | ||
inipadd+=0.1; | inipadd+=0.1; | ||
} | } | ||
- | if(inisize> | + | if(inisize>utarsize) |
{ | { | ||
- | if(inipadd> | + | if(inipadd>utarpadd) |
{ | { | ||
clearInterval(anim); | clearInterval(anim); |
Revision as of 16:04, 13 October 2010