Template:Peking2012 CSS

From 2012.igem.org

(Difference between revisions)
m
m
Line 586: Line 586:
   tmp = document.getElementById("PKU_banner_Team_submenu");
   tmp = document.getElementById("PKU_banner_Team_submenu");
-
   tmp.filter.alpha.value = SubmenuAlpha_Cur_Team;
+
   if (tmp.filter != undefined) /*IE*/
-
   tmp.style.opacity = SubmenuAlpha_Cur_Team;
+
  {
 +
    tmp.filter.alpha.value = SubmenuAlpha_Cur_Team;
 +
   }
 +
  else
 +
  {
 +
    tmp.style.opacity = SubmenuAlpha_Cur_Team;
 +
  }
   tmp = document.getElementById("PKU_banner_Project_submenu");
   tmp = document.getElementById("PKU_banner_Project_submenu");
-
   tmp.filter.alpha.value = SubmenuAlpha_Cur_Project;
+
   if (tmp.filter != undefined) /*IE*/
-
   tmp.style.opacity = SubmenuAlpha_Cur_Project;
+
  {
 +
    tmp.filter.alpha.value = SubmenuAlpha_Cur_Project;
 +
   }
 +
  else
 +
  {
 +
    tmp.style.opacity = SubmenuAlpha_Cur_Project;
 +
  }
   tmp = document.getElementById("PKU_banner_Modeling_submenu");
   tmp = document.getElementById("PKU_banner_Modeling_submenu");
-
   tmp.filter.alpha.value = SubmenuAlpha_Cur_Modeling;
+
   if (tmp.filter != undefined) /*IE*/
-
   tmp.style.opacity = SubmenuAlpha_Cur_Modeling;
+
  {
 +
    tmp.filter.alpha.value = SubmenuAlpha_Cur_Modeling;
 +
   }
 +
  else
 +
  {
 +
    tmp.style.opacity = SubmenuAlpha_Cur_Modeling;
 +
  }
   tmp = document.getElementById("PKU_banner_HumanPractice_submenu");
   tmp = document.getElementById("PKU_banner_HumanPractice_submenu");
-
   tmp.filter.alpha.value = SubmenuAlpha_Cur_HumanPractice;
+
   if (tmp.filter != undefined) /*IE*/
-
   tmp.style.opacity = SubmenuAlpha_Cur_HumanPractice;
+
  {
 +
    tmp.filter.alpha.value = SubmenuAlpha_Cur_HumanPractice;
 +
   }
 +
  else
 +
  {
 +
    tmp.style.opacity = SubmenuAlpha_Cur_HumanPractice;
 +
  }
}
}

Revision as of 08:34, 7 August 2012

 
banner /*src="/wiki/images/d/df/Peking2012_Banner_TitleB.png" src="/wiki/images/4/4c/Peking2012_Banner_TitleY.png"*/
Team_submenu Project_submenu Modeling_submenu HumanPractice_submenu