Template:Peking2012 CSS

From 2012.igem.org

(Difference between revisions)
m
m
Line 713: Line 713:
var handleSubmenu_Modeling = null; //Submenu Withdraw Handle
var handleSubmenu_Modeling = null; //Submenu Withdraw Handle
var handleSubmenu_HumanPractice = null; //Submenu Withdraw Handle
var handleSubmenu_HumanPractice = null; //Submenu Withdraw Handle
 +
 +
function HideSubmenuAll()
 +
{
 +
  SubmenuHeight_Des_Team = 0;
 +
  document.getElementById("PKU_banner_Team_submenu").style.zIndex = 1;
 +
  if (handleSubmenu_Team) clearTimeout(handleSubmenu_Team);
 +
  handleSubmenu_Team = null;
 +
  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;
 +
}
function ShowSubmenuTeam()
function ShowSubmenuTeam()
{
{
 +
  HoldSubmenuTeam();
   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;
Line 726: Line 747:
   SubmenuHeight_Des_Team = 0;
   SubmenuHeight_Des_Team = 0;
   document.getElementById("PKU_banner_Team_submenu").style.zIndex = 1;
   document.getElementById("PKU_banner_Team_submenu").style.zIndex = 1;
 +
  if (handleSubmenu_Team) clearTimeout(handleSubmenu_Team);
   handleSubmenu_Team = null;
   handleSubmenu_Team = null;
}
}
Line 743: Line 765:
function ShowSubmenuProject()
function ShowSubmenuProject()
{
{
 +
  HoldSubmenuProject();
   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;
Line 753: Line 776:
   SubmenuHeight_Des_Project = 0;
   SubmenuHeight_Des_Project = 0;
   document.getElementById("PKU_banner_Project_submenu").style.zIndex = 1;
   document.getElementById("PKU_banner_Project_submenu").style.zIndex = 1;
 +
  if (handleSubmenu_Project) clearTimeout(handleSubmenu_Project);
   handleSubmenu_Project = null;
   handleSubmenu_Project = null;
}
}
Line 770: Line 794:
function ShowSubmenuModeling()
function ShowSubmenuModeling()
{
{
 +
  HoldSubmenuModeling();
   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;
Line 780: Line 805:
   SubmenuHeight_Des_Modeling = 0;
   SubmenuHeight_Des_Modeling = 0;
   document.getElementById("PKU_banner_Modeling_submenu").style.zIndex = 1;
   document.getElementById("PKU_banner_Modeling_submenu").style.zIndex = 1;
 +
  if (handleSubmenu_Modeling) clearTimeout(handleSubmenu_Modeling);
   handleSubmenu_Modeling = null;
   handleSubmenu_Modeling = null;
}
}
Line 797: Line 823:
function ShowSubmenuHumanPractice()
function ShowSubmenuHumanPractice()
{
{
 +
  HoldSubmenuHumanPractice();
   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;
Line 807: Line 834:
   SubmenuHeight_Des_HumanPractice = 0;
   SubmenuHeight_Des_HumanPractice = 0;
   document.getElementById("PKU_banner_HumanPractice_submenu").style.zIndex = 1;
   document.getElementById("PKU_banner_HumanPractice_submenu").style.zIndex = 1;
 +
  if (handleSubmenu_HumanPractice) clearTimeout(handleSubmenu_HumanPractice);
   handleSubmenu_HumanPractice = null;
   handleSubmenu_HumanPractice = null;
}
}
Line 845: Line 873:
var handleFreshSubmenuHeight = setInterval("FreshSubmenuHeight();",50);
var handleFreshSubmenuHeight = setInterval("FreshSubmenuHeight();",50);
-
var handleSubmenuWithdraw = setInterval("SubmenuIsMouseOver = 0;",5000);
 
</script>
</script>
</html>
</html>

Revision as of 02:02, 9 August 2012