Template:Peking2012 Color Prologue

From 2012.igem.org

(Difference between revisions)
m
m
Line 561: Line 561:
   </li>
   </li>
   <li>
   <li>
-
     <ul onmouseover="TriggerSubmenu(1);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:170px;">
+
     <ul onmouseover="TriggerSubmenu(1);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:170px;display:block;">
     <li class="submenu_team">
     <li class="submenu_team">
       <a href="/Team:Peking/Team/Members">
       <a href="/Team:Peking/Team/Members">
Line 584: Line 584:
     </ul>
     </ul>
   </li>
   </li>
-
   <li name="submenu_h" >
+
   <li>
-
     <ul onmouseover="TriggerSubmenu(2);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:250px;">
+
     <ul onmouseover="TriggerSubmenu(2);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:250px;display:block;">
     <li class="submenu_project">
     <li class="submenu_project">
       <a href="/Team:Peking/Project/Luminesensor">
       <a href="/Team:Peking/Project/Luminesensor">
Line 608: Line 608:
     </ul>
     </ul>
   </li>
   </li>
-
   <li name="submenu_h" >
+
   <li>
-
     <ul onmouseover="TriggerSubmenu(3);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:250px;">
+
     <ul onmouseover="TriggerSubmenu(3);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:250px;display:block;">
     <li class="submenu_modeling">
     <li class="submenu_modeling">
       <a href="/Team:Peking/Modeling/Luminesensor">
       <a href="/Team:Peking/Modeling/Luminesensor">
Line 632: Line 632:
     </ul>
     </ul>
   </li>
   </li>
-
   <li name="submenu_h" >
+
   <li>
-
     <ul onmouseover="TriggerSubmenu(4);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:300px;">
+
     <ul onmouseover="TriggerSubmenu(4);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:300px;display:block;">
     <li class="submenu_humanpractice">
     <li class="submenu_humanpractice">
       <a href="/Team:Peking/HumanPractice/SowingTomorrowSyntheticBiologists">
       <a href="/Team:Peking/HumanPractice/SowingTomorrowSyntheticBiologists">
Line 677: Line 677:
for (var it=0;it<Submenu_Item_Num;++it)
for (var it=0;it<Submenu_Item_Num;++it)
{
{
-
   Submenu_Obj[it].style.height=Submenu_Size_Cur[it]+'px';
+
   Submenu_Obj[it].style.height=Submenu_Size_Cur[it+1]+'px';
}
}
Line 707: Line 707:
   {
   {
     Submenu_Size_Cur[Submenu_Item_Cur]=0;
     Submenu_Size_Cur[Submenu_Item_Cur]=0;
 +
    Submenu_Obj[Submenu_Item_Cur-1].style.display='none';
 +
    Submenu_Obj[Submenu_Item_Cur-1].style.height=0;
     Submenu_Item_Cur = Submenu_Item_Des;
     Submenu_Item_Cur = Submenu_Item_Des;
     Submenu_Blank.style.width=Submenu_BlankWidth[Submenu_Item_Cur]+'px';
     Submenu_Blank.style.width=Submenu_BlankWidth[Submenu_Item_Cur]+'px';
     if (Submenu_Item_Des!=0)
     if (Submenu_Item_Des!=0)
     {
     {
 +
      if (Submenu_Handle) {clearTimeout(Submenu_Handle);}
 +
      Submenu_Obj[Submenu_Item_Cur-1].style.display='block';
       Submenu_Handle_State = 1;
       Submenu_Handle_State = 1;
       ItemGrowth();
       ItemGrowth();
Line 749: Line 753:
         Submenu_Handle_State = 1;
         Submenu_Handle_State = 1;
         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';
 +
        if (Submenu_Handle) {clearTimeout(Submenu_Handle);}
         ItemGrowth();
         ItemGrowth();
       }
       }
Line 762: Line 768:
       else if (i!=Submenu_Item_Cur)
       else if (i!=Submenu_Item_Cur)
       {
       {
 +
        if (Submenu_Handle) {clearTimeout(Submenu_Handle);}
         Submenu_Handle_State = 3;
         Submenu_Handle_State = 3;
         ItemWither();
         ItemWither();
Line 772: Line 779:
     if (i!=0)
     if (i!=0)
     {
     {
 +
      clearTimeout(Submenu_Handle);
       if (i==Submenu_Item_Cur)
       if (i==Submenu_Item_Cur)
       {
       {
-
        clearTimeout(Submenu_Handle_State);
 
         Submenu_Handle_State = 0;
         Submenu_Handle_State = 0;
       }
       }

Revision as of 15:22, 10 September 2012