Template:Template HD 1

From 2011.igem.org

(Difference between revisions)
Line 86: Line 86:
{ background: #269434;
{ background: #269434;
color: #000}
color: #000}
-
 
-
// Copyright 2006-2007 javascript-array.com
 
-
 
-
var timeout = 500;
 
-
var closetimer = 0;
 
-
var ddmenuitem = 0;
 
-
 
-
// open hidden layer
 
-
function mopen(id)
 
-
{
 
-
// cancel close timer
 
-
mcancelclosetime();
 
-
 
-
// close old layer
 
-
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
 
-
 
-
// get new layer and show it
 
-
ddmenuitem = document.getElementById(id);
 
-
ddmenuitem.style.visibility = 'visible';
 
-
 
-
}
 
-
// close showed layer
 
-
function mclose()
 
-
{
 
-
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
 
-
}
 
-
 
-
// go close timer
 
-
function mclosetime()
 
-
{
 
-
closetimer = window.setTimeout(mclose, timeout);
 
-
}
 
-
 
-
// cancel close timer
 
-
function mcancelclosetime()
 
-
{
 
-
if(closetimer)
 
-
{
 
-
window.clearTimeout(closetimer);
 
-
closetimer = null;
 
-
}
 
-
}
 
-
 
-
// close layer when click-out
 
-
document.onclick = mclose;
 
</style>
</style>
Line 136: Line 91:
<body>
<body>
<ul id="menu">
<ul id="menu">
-
     <li><a href="https://2011.igem.org/Team:British_Columbia">home</a>
+
     <li><a href="https://2011.igem.org/Team:British_Columbia">home</a></li>
 +
    <li><a href="https://2011.igem.org/Team:British_Columbia/Team">team</a>
 +
      <ul>
 +
        <li><a href="https://2011.igem.org/Team:British_Columbia/People">people</a></li>
 +
        <li><a href="https://2011.igem.org/Team:British_Columbia/Location">location</a></li>
 +
      </ul>
     </li>
     </li>
-
     <li><a href="https://2011.igem.org/Team:British_Columbia/Team"  
+
     <li><a href="https://2011.igem.org/Team:British_Columbia/Project"</a>
-
        onmouseover="mopen('m2')"
+
      <ul>
-
         onmouseout="mclosetime()">team</a>
+
         <li><a href="https://2011.igem.org/Team:British_Columbia/Abstract">abstract</a></li>
-
         <div id="m2"
+
         <li><a href="https://2011.igem.org/Team:British_Columbia/Background">background</a></li>
-
            onmouseover="mcancelclosetime()"
+
         <li><a href="https://2011.igem.org/Team:British_Columbia/Objectives">objectives</a></li>
-
            onmouseout="mclosetime()">
+
         <li><a href="https://2011.igem.org/Team:British_Columbia/Application">application</a></li>
-
         <a href="https://2011.igem.org/Team:British_Columbia/People">people</a>
+
      </ul>
-
         <a href="https://2011.igem.org/Team:British_Columbia/Location">location</a>
+
-
        </div>
+
     </li>
     </li>
-
     <li><a href="https://2011.igem.org/Team:British_Columbia/Project"
+
     <li><a href="https://2011.igem.org/Team:British_Columbia/Results"</a>
-
        onmouseover="mopen('m2')"
+
      <ul>
-
        onmouseout="mclosetime()">project</a>
+
         <li><a href="https://2011.igem.org/Team:British_Columbia/Parts">submitted parts</a></li>
-
        <div id="m2"
+
         <li><a href="https://2011.igem.org/Team:British_Columbia/Characterized">characterized parts</a></li>
-
            onmouseover="mcancelclosetime()"
+
         <li><a href="https://2011.igem.org/Team:British_Columbia/Achievements">achievements</a></li>
-
            onmouseout="mclosetime()">
+
      </ul>
-
         <a href="https://2011.igem.org/Team:British_Columbia/Abstract">abstract</a>
+
-
        <a href="https://2011.igem.org/Team:British_Columbia/Background">background</a>
+
-
        <a href="https://2011.igem.org/Team:British_Columbia/Objectives">objectives</a>
+
-
         <a href="https://2011.igem.org/Team:British_Columbia/Application">application</a>
+
-
        </div>
+
-
    </li>
+
-
    <li><a href="https://2011.igem.org/Team:British_Columbia/Results"
+
-
        onmouseover="mopen('m2')"
+
-
        onmouseout="mclosetime()">results</a>
+
-
        <div id="m2"
+
-
            onmouseover="mcancelclosetime()"
+
-
            onmouseout="mclosetime()">
+
-
         <a href="https://2011.igem.org/Team:British_Columbia/Parts">submitted parts</a>
+
-
        <a href="https://2011.igem.org/Team:British_Columbia/Characterized">characterized parts</a>
+
-
        <a href="https://2011.igem.org/Team:British_Columbia/Achievements">achievements</a>
+
-
        </div>
+
     </li>
     </li>
     <li><a href="https://2011.igem.org/Team:British_Columbia/Notebook">notebook</a></li>
     <li><a href="https://2011.igem.org/Team:British_Columbia/Notebook">notebook</a></li>

Revision as of 07:02, 3 August 2011