Template:Peking2012 CSS

From 2012.igem.org

(Difference between revisions)
m
m
Line 466: Line 466:
   <ul id="PKU_banner_menu">
   <ul id="PKU_banner_menu">
   <li>
   <li>
-
     <a id="PKU_banner_Home" onmouseover="ButtonMouseOver();" onmouseout="ButtonMouseOut();" href="/Team:Peking">
+
     <a id="PKU_banner_Home" onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" href="/Team:Peking">
     <img class="show" src="/wiki/images/7/71/Peking2012_BannerMenu_Home.png" alt="Home" />
     <img class="show" src="/wiki/images/7/71/Peking2012_BannerMenu_Home.png" alt="Home" />
     <img class="hidden" src="/wiki/images/e/e6/Peking2012_BannerMenu_HomeH.png" alt="Home" />
     <img class="hidden" src="/wiki/images/e/e6/Peking2012_BannerMenu_HomeH.png" alt="Home" />
Line 472: Line 472:
   </li>
   </li>
   <li>
   <li>
-
     <a id="PKU_banner_Team" onmouseover="ButtonMouseOver();ShowSubmenuTeam();" onmouseout="ButtonMouseOut();HideSubmenuTeam();" href="/Team:Peking/Team">
+
     <a id="PKU_banner_Team" onmouseover="ButtonMouseOver(this);ShowSubmenuTeam();" onmouseout="ButtonMouseOut(this);HideSubmenuTeam();" href="/Team:Peking/Team">
     <img class="show" src="/wiki/images/0/0b/Peking2012_BannerMenu_Team.png" alt="Team" />
     <img class="show" src="/wiki/images/0/0b/Peking2012_BannerMenu_Team.png" alt="Team" />
     <img class="hidden" src="/wiki/images/c/ce/Peking2012_BannerMenu_TeamH.png" alt="Team" />
     <img class="hidden" src="/wiki/images/c/ce/Peking2012_BannerMenu_TeamH.png" alt="Team" />
Line 478: Line 478:
   </li>
   </li>
   <li>
   <li>
-
     <a id="PKU_banner_Project" onmouseover="ButtonMouseOver();ShowSubmenuProject();" onmouseout="ButtonMouseOut();HideSubmenuProject();" href="/Team:Peking/Project">
+
     <a id="PKU_banner_Project" onmouseover="ButtonMouseOver(this);ShowSubmenuProject();" onmouseout="ButtonMouseOut(this);HideSubmenuProject();" href="/Team:Peking/Project">
     <img class="show" src="/wiki/images/2/2c/Peking2012_BannerMenu_Project.png" alt="Project" />
     <img class="show" src="/wiki/images/2/2c/Peking2012_BannerMenu_Project.png" alt="Project" />
     <img class="hidden" src="/wiki/images/4/4c/Peking2012_BannerMenu_ProjectH.png" alt="Project" />
     <img class="hidden" src="/wiki/images/4/4c/Peking2012_BannerMenu_ProjectH.png" alt="Project" />
Line 484: Line 484:
   </li>
   </li>
   <li>
   <li>
-
     <a id="PKU_banner_Parts" onmouseover="ButtonMouseOver();" onmouseout="ButtonMouseOut();" href="/Team:Peking/Parts">
+
     <a id="PKU_banner_Parts" onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" href="/Team:Peking/Parts">
     <img class="show" src="/wiki/images/f/f2/Peking2012_BannerMenu_Parts.png" alt="Parts" />
     <img class="show" src="/wiki/images/f/f2/Peking2012_BannerMenu_Parts.png" alt="Parts" />
     <img class="hidden" src="/wiki/images/d/da/Peking2012_BannerMenu_PartsH.png" alt="Parts" />
     <img class="hidden" src="/wiki/images/d/da/Peking2012_BannerMenu_PartsH.png" alt="Parts" />
Line 490: Line 490:
   </li>
   </li>
   <li>
   <li>
-
     <a id="PKU_banner_Modeling" onmouseover="ButtonMouseOver();ShowSubmenuModeling();" onmouseout="ButtonMouseOut();HideSubmenuModeling();" href="/Team:Peking/Modeling">
+
     <a id="PKU_banner_Modeling" onmouseover="ButtonMouseOver(this);ShowSubmenuModeling();" onmouseout="ButtonMouseOut(this);HideSubmenuModeling();" href="/Team:Peking/Modeling">
     <img class="show" src="/wiki/images/9/97/Peking2012_BannerMenu_Modeling.png" alt="Modeling" />
     <img class="show" src="/wiki/images/9/97/Peking2012_BannerMenu_Modeling.png" alt="Modeling" />
     <img class="hidden" src="/wiki/images/b/be/Peking2012_BannerMenu_ModelingH.png" alt="Modeling" />
     <img class="hidden" src="/wiki/images/b/be/Peking2012_BannerMenu_ModelingH.png" alt="Modeling" />
Line 496: Line 496:
   </li>
   </li>
   <li>
   <li>
-
     <a id="PKU_banner_HumanPractice" onmouseover="ButtonMouseOver();ShowSubmenuHumanPractice();" onmouseout="ButtonMouseOut();HideSubmenuHumanPractice();" href="/Team:Peking/HumanPractice">
+
     <a id="PKU_banner_HumanPractice" onmouseover="ButtonMouseOver(this);ShowSubmenuHumanPractice();" onmouseout="ButtonMouseOut(this);HideSubmenuHumanPractice();" href="/Team:Peking/HumanPractice">
     <img class="show" src="/wiki/images/9/93/Peking2012_BannerMenu_HumanPractice.png" alt="HumanPractice" />
     <img class="show" src="/wiki/images/9/93/Peking2012_BannerMenu_HumanPractice.png" alt="HumanPractice" />
     <img class="hidden" src="/wiki/images/d/de/Peking2012_BannerMenu_HumanPracticeH.png" alt="HumanPractice" />
     <img class="hidden" src="/wiki/images/d/de/Peking2012_BannerMenu_HumanPracticeH.png" alt="HumanPractice" />
Line 502: Line 502:
   </li>
   </li>
   <li>
   <li>
-
     <a id="PKU_banner_Safety" onmouseover="ButtonMouseOver();" onmouseout="ButtonMouseOut();" href="/Team:Peking/Safety">
+
     <a id="PKU_banner_Safety" onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" href="/Team:Peking/Safety">
     <img class="show" src="/wiki/images/f/f5/Peking2012_BannerMenu_Safety.png" alt="Safety" />
     <img class="show" src="/wiki/images/f/f5/Peking2012_BannerMenu_Safety.png" alt="Safety" />
     <img class="hidden" src="/wiki/images/0/05/Peking2012_BannerMenu_SafetyH.png" alt="Safety" />
     <img class="hidden" src="/wiki/images/0/05/Peking2012_BannerMenu_SafetyH.png" alt="Safety" />
Line 523: Line 523:
  * E-mail: sun.niasw@gmail.com
  * E-mail: sun.niasw@gmail.com
  */
  */
-
function ButtonMouseOver()
+
function ButtonMouseOver(objPointer)
{
{
-
   var Img = this.childNodes;
+
   var Img = objPointer.childNodes;
   Img[1].style.display = "block";
   Img[1].style.display = "block";
   Img[0].style.display = "none";
   Img[0].style.display = "none";
}
}
-
function ButtonMouseOut()
+
function ButtonMouseOut(objPointer)
{
{
-
   var Img = this.childNodes;
+
   var Img = objPointer.childNodes;
   Img[0].style.display = "block";
   Img[0].style.display = "block";
   Img[1].style.display = "none";
   Img[1].style.display = "none";

Revision as of 12:29, 7 August 2012