Template:Peking2012 Color Prologue
From 2012.igem.org
(Difference between revisions)
m |
m |
||
Line 691: | Line 691: | ||
{ | { | ||
Submenu_Size_Cur[Submenu_Item_Cur]=Submenu_ListHeight[Submenu_Item_Cur]; | Submenu_Size_Cur[Submenu_Item_Cur]=Submenu_ListHeight[Submenu_Item_Cur]; | ||
- | |||
Submenu_Handle_State = 0; | Submenu_Handle_State = 0; | ||
+ | Submenu_Handle = null; | ||
} | } | ||
else | else | ||
Line 712: | Line 712: | ||
if (Submenu_Item_Des!=0) | if (Submenu_Item_Des!=0) | ||
{ | { | ||
- | if (Submenu_Handle) {clearTimeout(Submenu_Handle);} | + | if (Submenu_Handle) {clearTimeout(Submenu_Handle);Submenu_Handle = null;} |
Submenu_Obj[Submenu_Item_Cur-1].style.display='block'; | Submenu_Obj[Submenu_Item_Cur-1].style.display='block'; | ||
Submenu_Handle_State = 1; | Submenu_Handle_State = 1; | ||
Line 753: | Line 753: | ||
Submenu_Blank.style.width=Submenu_BlankWidth[Submenu_Item_Cur]+'px'; | Submenu_Blank.style.width=Submenu_BlankWidth[Submenu_Item_Cur]+'px'; | ||
Submenu_Obj[Submenu_Item_Cur-1].style.display='block'; | Submenu_Obj[Submenu_Item_Cur-1].style.display='block'; | ||
- | if (Submenu_Handle) {clearTimeout(Submenu_Handle);} | + | if (Submenu_Handle) {clearTimeout(Submenu_Handle);Submenu_Handle = null;} |
ItemGrowth(); | ItemGrowth(); | ||
} | } | ||
Line 767: | Line 767: | ||
else if (i!=Submenu_Item_Cur) | else if (i!=Submenu_Item_Cur) | ||
{ | { | ||
- | if (Submenu_Handle) {clearTimeout(Submenu_Handle);} | + | if (Submenu_Handle) {clearTimeout(Submenu_Handle);Submenu_Handle = null;} |
Submenu_Handle_State = 3; | Submenu_Handle_State = 3; | ||
ItemWither(); | ItemWither(); | ||
Line 778: | Line 778: | ||
if (i!=0) | if (i!=0) | ||
{ | { | ||
- | clearTimeout(Submenu_Handle); | + | clearTimeout(Submenu_Handle);Submenu_Handle = null; |
if (i==Submenu_Item_Cur) | if (i==Submenu_Item_Cur) | ||
{ | { | ||
Line 795: | Line 795: | ||
if (i==Submenu_Item_Cur) | if (i==Submenu_Item_Cur) | ||
{ | { | ||
- | clearTimeout(Submenu_Handle); | + | clearTimeout(Submenu_Handle);Submenu_Handle = null; |
Submenu_Handle_State = 1; | Submenu_Handle_State = 1; | ||
ItemGrowth(); | ItemGrowth(); | ||
Line 805: | Line 805: | ||
{ | { | ||
Submenu_Item_Des = i; | Submenu_Item_Des = i; | ||
- | clearTimeout(Submenu_Handle); | + | clearTimeout(Submenu_Handle);Submenu_Handle = null; |
Submenu_Handle_State = 3; | Submenu_Handle_State = 3; | ||
ItemWither(); | ItemWither(); |
Revision as of 16:05, 10 September 2012