Template:Peking2012 CSS

From 2012.igem.org

(Difference between revisions)
m
m
Line 218: Line 218:
   overflow: hidden;
   overflow: hidden;
   width: 965px;
   width: 965px;
-
   height: 32px;
+
   height: 30px;
   padding: 0;
   padding: 0;
   margin: 0 auto;
   margin: 0 auto;
Line 225: Line 225:
{
{
   position: relative;
   position: relative;
-
   top: -32px;
+
   top: -30px;
}
}
.PKU_banner_submenu
.PKU_banner_submenu
Line 231: Line 231:
   position: absolute;
   position: absolute;
   top: 240px;
   top: 240px;
 +
  z-index: 1;
}
}
#PKU_banner_menu li ,
#PKU_banner_menu li ,
Line 239: Line 240:
   clear: none;
   clear: none;
   width: 137px;
   width: 137px;
-
   height: 32px;
+
   height: 30px;
}
}
#PKU_banner_menu li.border ,
#PKU_banner_menu li.border ,
Line 713: Line 714:
{
{
   SubmenuHeight_Des_Team = 1;
   SubmenuHeight_Des_Team = 1;
 +
  document.getElementById("PKU_banner_Team_submenu").style.zIndex = 2;
}
}
function HideSubmenuTeam()
function HideSubmenuTeam()
{
{
-
   if (SubmenuIsMouseOver == 0) SubmenuHeight_Des_Team = 0;
+
   if (SubmenuIsMouseOver == 0)
 +
  {
 +
    SubmenuHeight_Des_Team = 0;
 +
    document.getElementById("PKU_banner_Team_submenu").style.zIndex = 1;
 +
  }
}
}
function ShowSubmenuProject()
function ShowSubmenuProject()
{
{
   SubmenuHeight_Des_Project = 1;
   SubmenuHeight_Des_Project = 1;
 +
  document.getElementById("PKU_banner_Project_submenu").style.zIndex = 2;
}
}
function HideSubmenuProject()
function HideSubmenuProject()
{
{
-
   if (SubmenuIsMouseOver == 0) SubmenuHeight_Des_Project = 0;
+
   if (SubmenuIsMouseOver == 0)
 +
  {
 +
    SubmenuHeight_Des_Project = 0;
 +
    document.getElementById("PKU_banner_Project_submenu").style.zIndex = 1;
 +
  }
}
}
function ShowSubmenuModeling()
function ShowSubmenuModeling()
{
{
   SubmenuHeight_Des_Modeling = 1;
   SubmenuHeight_Des_Modeling = 1;
 +
  document.getElementById("PKU_banner_Modeling_submenu").style.zIndex = 2;
}
}
function HideSubmenuModeling()
function HideSubmenuModeling()
{
{
-
   if (SubmenuIsMouseOver == 0) SubmenuHeight_Des_Modeling = 0;
+
   if (SubmenuIsMouseOver == 0)
 +
  {
 +
    SubmenuHeight_Des_Modeling = 0;
 +
    document.getElementById("PKU_banner_Modeling_submenu").style.zIndex = 1;
 +
  }
}
}
function ShowSubmenuHumanPractice()
function ShowSubmenuHumanPractice()
{
{
   SubmenuHeight_Des_HumanPractice = 1;
   SubmenuHeight_Des_HumanPractice = 1;
 +
  document.getElementById("PKU_banner_HumanPractice_submenu").style.zIndex = 2;
}
}
function HideSubmenuHumanPractice()
function HideSubmenuHumanPractice()
{
{
-
   if (SubmenuIsMouseOver == 0) SubmenuHeight_Des_HumanPractice = 0;
+
   if (SubmenuIsMouseOver == 0)
 +
  {
 +
    SubmenuHeight_Des_HumanPractice = 0;
 +
    document.getElementById("PKU_banner_HumanPractice_submenu").style.zIndex = 1;
 +
  }
}
}
function FreshSubmenuHeight()
function FreshSubmenuHeight()
{
{
-
   SubmenuHeight_Cur_Team += ( SubmenuHeight_Des_Team - SubmenuHeight_Cur_Team ) * 0.3;
+
   SubmenuHeight_Cur_Team += ( SubmenuHeight_Des_Team - SubmenuHeight_Cur_Team ) * 0.35;
-
   SubmenuHeight_Cur_Project += ( SubmenuHeight_Des_Project - SubmenuHeight_Cur_Project ) * 0.3;
+
   SubmenuHeight_Cur_Project += ( SubmenuHeight_Des_Project - SubmenuHeight_Cur_Project ) * 0.35;
-
   SubmenuHeight_Cur_Modeling += ( SubmenuHeight_Des_Modeling - SubmenuHeight_Cur_Modeling ) * 0.3;
+
   SubmenuHeight_Cur_Modeling += ( SubmenuHeight_Des_Modeling - SubmenuHeight_Cur_Modeling ) * 0.35;
-
   SubmenuHeight_Cur_HumanPractice += ( SubmenuHeight_Des_HumanPractice - SubmenuHeight_Cur_HumanPractice ) * 0.3;
+
   SubmenuHeight_Cur_HumanPractice += ( SubmenuHeight_Des_HumanPractice - SubmenuHeight_Cur_HumanPractice ) * 0.35;
    
    
   var tmp;
   var tmp;
   tmp = document.getElementById("PKU_banner_Team_submenu");
   tmp = document.getElementById("PKU_banner_Team_submenu");
-
   tmp.style.height = SubmenuHeight_Cur_Team * 32 + "px";
+
   tmp.style.height = SubmenuHeight_Cur_Team * 30 + "px";
   tmp = document.getElementById("PKU_banner_Project_submenu");
   tmp = document.getElementById("PKU_banner_Project_submenu");
-
   tmp.style.height = SubmenuHeight_Cur_Project * 32 + "px";
+
   tmp.style.height = SubmenuHeight_Cur_Project * 30 + "px";
   tmp = document.getElementById("PKU_banner_Modeling_submenu");
   tmp = document.getElementById("PKU_banner_Modeling_submenu");
-
   tmp.style.height = SubmenuHeight_Cur_Modeling * 32 + "px";
+
   tmp.style.height = SubmenuHeight_Cur_Modeling * 30 + "px";
   tmp = document.getElementById("PKU_banner_HumanPractice_submenu");
   tmp = document.getElementById("PKU_banner_HumanPractice_submenu");
-
   tmp.style.height = SubmenuHeight_Cur_HumanPractice * 32 + "px";
+
   tmp.style.height = SubmenuHeight_Cur_HumanPractice * 30 + "px";
}
}

Revision as of 07:45, 8 August 2012