Template:Peking2012 CSS

From 2012.igem.org

(Difference between revisions)
m
m
 
(One intermediate revision not shown)
Line 721: Line 721:
function HideSubmenuAll()
function HideSubmenuAll()
{
{
-
   SubmenuHeight_Des_Team = 0;
+
   HideSubmenuTeam();
-
  document.getElementById("PKU_banner_Team_submenu").style.zIndex = 1;
+
   HideSubmenuProject();
-
   if (handleSubmenu_Team) clearTimeout(handleSubmenu_Team);
+
   HideSubmenuModeling();
-
   handleSubmenu_Team = null;
+
   HideSubmenuHumanPractice();
-
  SubmenuHeight_Des_Project = 0;
+
-
  document.getElementById("PKU_banner_Project_submenu").style.zIndex = 1;
+
-
   if (handleSubmenu_Project) clearTimeout(handleSubmenu_Project);
+
-
  handleSubmenu_Project = null;
+
-
  SubmenuHeight_Des_Modeling = 0;
+
-
  document.getElementById("PKU_banner_Modeling_submenu").style.zIndex = 1;
+
-
  if (handleSubmenu_Modeling) clearTimeout(handleSubmenu_Modeling);
+
-
  handleSubmenu_Modeling = null;
+
-
  SubmenuHeight_Des_HumanPractice = 0;
+
-
  document.getElementById("PKU_banner_HumanPractice_submenu").style.zIndex = 1;
+
-
  if (handleSubmenu_HumanPractice) clearTimeout(handleSubmenu_HumanPractice);
+
-
  handleSubmenu_HumanPractice = null;
+
}
}
Line 744: Line 732:
   SubmenuHeight_Des_Team = 1;
   SubmenuHeight_Des_Team = 1;
   document.getElementById("PKU_banner_Team_submenu").style.zIndex = 2;
   document.getElementById("PKU_banner_Team_submenu").style.zIndex = 2;
-
   SubmenuHeight_Des_Project = 0;
+
   HideSubmenuProject();
-
   SubmenuHeight_Des_Modeling = 0;
+
   HideSubmenuModeling();
-
   SubmenuHeight_Des_HumanPractice = 0;
+
   HideSubmenuHumanPractice();
}
}
function HideSubmenuTeam()
function HideSubmenuTeam()
Line 774: Line 762:
   SubmenuHeight_Des_Project = 1;
   SubmenuHeight_Des_Project = 1;
   document.getElementById("PKU_banner_Project_submenu").style.zIndex = 2;
   document.getElementById("PKU_banner_Project_submenu").style.zIndex = 2;
-
   SubmenuHeight_Des_Team = 0;
+
   HideSubmenuTeam();
-
   SubmenuHeight_Des_Modeling = 0;
+
   HideSubmenuModeling();
-
   SubmenuHeight_Des_HumanPractice = 0;
+
   HideSubmenuHumanPractice();
}
}
function HideSubmenuProject()
function HideSubmenuProject()
Line 804: Line 792:
   SubmenuHeight_Des_Modeling = 1;
   SubmenuHeight_Des_Modeling = 1;
   document.getElementById("PKU_banner_Modeling_submenu").style.zIndex = 2;
   document.getElementById("PKU_banner_Modeling_submenu").style.zIndex = 2;
-
   SubmenuHeight_Des_Project = 0;
+
   HideSubmenuProject();
-
   SubmenuHeight_Des_Team = 0;
+
   HideSubmenuTeam();
-
   SubmenuHeight_Des_HumanPractice = 0;
+
   HideSubmenuHumanPractice();
}
}
function HideSubmenuModeling()
function HideSubmenuModeling()
Line 834: Line 822:
   SubmenuHeight_Des_HumanPractice = 1;
   SubmenuHeight_Des_HumanPractice = 1;
   document.getElementById("PKU_banner_HumanPractice_submenu").style.zIndex = 2;
   document.getElementById("PKU_banner_HumanPractice_submenu").style.zIndex = 2;
-
   SubmenuHeight_Des_Project = 0;
+
   HideSubmenuProject();
-
   SubmenuHeight_Des_Modeling = 0;
+
   HideSubmenuModeling();
-
   SubmenuHeight_Des_Team = 0;
+
   HideSubmenuTeam();
}
}
function HideSubmenuHumanPractice()
function HideSubmenuHumanPractice()

Latest revision as of 12:16, 11 August 2012