Template:CalgaryMenu

From 2011.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
<head>
<head>
-
<script type="text/javascript">
+
  <script type="text/javascript">
-
var timeout = 500;
+
  var timeout = 500;
-
var closetimer = 0;
+
  var closetimer = 0;
-
var ddmenuitem = 0;
+
  var ddmenuitem = 0;
-
// open hidden layer
+
  // open hidden layer
-
function mopen(id)
+
  function mopen(id){
-
{
+
    mcancelclosetime();
-
mcancelclosetime();
+
    if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
 +
 
 +
    // get new layer and show it
 +
    ddmenuitem = document.getElementById(id);
 +
    ddmenuitem.style.visibility = 'visible';
 +
  }
-
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
+
  // close showed layer
-
+
  function mclose(){
-
// get new layer and show it
+
    if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
-
ddmenuitem = document.getElementById(id);
+
  }
-
ddmenuitem.style.visibility = 'visible';
+
 
-
+
  // go close timer
-
}
+
  function mclosetime(){
-
// close showed layer
+
    closetimer = window.setTimeout(mclose, timeout);
-
function mclose()
+
  }
-
{
+
 
-
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
+
  // cancel close timer
-
}
+
  function mcancelclosetime(){
-
+
    if(closetimer)
-
// go close timer
+
    {
-
function mclosetime()
+
      window.clearTimeout(closetimer);
-
{
+
      closetimer = null;
-
closetimer = window.setTimeout(mclose, timeout);
+
    }
-
}
+
  }
-
+
-
// cancel close timer
+
-
function mcancelclosetime()
+
-
{
+
-
if(closetimer)
+
-
{
+
-
window.clearTimeout(closetimer);
+
-
closetimer = null;
+
-
}
+
-
}
+
-
// close layer when click-out
+
  // close layer when click-out
-
document.onclick = mclose;  
+
  document.onclick = mclose;  
-
</script>
+
  </script>
-
<style>
+
  <style>
-
body{
+
    body{
-
background-color: #808080;
+
      background-color: #808080;
-
}
+
    }
-
p {
+
    p {
-
font-family: Verdana, sans-serif;
+
      font-family: Verdana, sans-serif;
-
}
+
    }
-
a {
+
    a {
-
font-family: Verdana, sans-serif;
+
      font-family: Verdana, sans-serif;
-
}
+
    }
-
li{
+
    li{
-
font-family: Verdana, sans-serif;
+
      font-family: Verdana, sans-serif;
-
}
+
    }
-
h2{
+
    h2{
-
color:#0066CC;
+
      color:#0066CC;
-
}
+
    }
-
h4{
+
    h4{
-
color:#003366;
+
      color:#003366;
-
}
+
    }
-
img.bannerImage{
+
    img.bannerImage{
-
margin-top: -56px;
+
      margin-top: -56px;
-
margin-left: -5px;
+
      margin-left: -5px;
-
z-index: 0;
+
      z-index: 0;
-
}
+
    }
-
div.menuBar{
+
    div.menuBar{
-
margin-left: -5px;
+
      margin-left: -5px;
-
width: 920px;
+
      width: 920px;
-
height: 25px;
+
      height: 25px;
-
margin-bottom: 20px;
+
      margin-bottom: 20px;
-
margin-top: -45px;
+
      margin-top: -45px;
-
float: left;
+
      float: left;
-
}
+
      }
-
#nav {
+
      #nav {
-
margin: 0;
+
        margin: 0;
-
padding: 0;
+
        padding: 0;
-
z-index: 30;
+
        z-index: 30;
-
position: relative;
+
        position: relative;
-
}
+
      }
-
+
 
-
#nav li {
+
      #nav li {
-
margin: 0;
+
        margin: 0;
-
padding: 0;
+
        padding: 0;
-
list-style: none;
+
        list-style: none;
-
float: left;
+
        float: left;
-
font: bold 12px verdana;
+
        font: bold 12px verdana;
-
}
+
      }
-
#nav li a {
+
      #nav li a {
-
display: block;
+
        display: block;
-
margin: 0 0 0 0;
+
        margin: 0 0 0 0;
-
padding: 6px 10px;
+
        padding: 6px 10px;
-
width: 82px;
+
        width: 82px;
-
background: #8bff35;
+
        background: #8bff35;
-
color: #000;
+
        color: #000;
-
text-align: center;
+
        text-align: center;
-
text-decoration: none;
+
        text-decoration: none;
-
border-right: 2px solid #131313;
+
        border-right: 2px solid #131313;
-
}
+
      }
-
#nav li .menuend{
+
        #nav li .menuend{
-
border-right: 2px solid #8bff35;
+
          border-right: 2px solid #8bff35;
-
width: 66px;
+
          width: 66px;
-
}
+
        }
-
#nav li a:hover {
+
      #nav li a:hover {
-
color: #FFF;
+
        color: #FFF;
-
}
+
      }
-
#nav div {
+
      #nav div {
-
position: absolute;
+
        position: absolute;
-
visibility: hidden;
+
        visibility: hidden;
-
margin: 0;
+
        margin: 0;
-
padding: 0;
+
        padding: 0;
-
background: #131313;
+
        background: #131313;
-
}
+
      }
-
#nav div a {
+
        #nav div a {
-
position: relative;
+
          position: relative;
-
display: block;
+
          display: block;
-
margin: 0;
+
          margin: 0;
-
padding: 5px 10px;
+
          padding: 5px 10px;
-
width: 150px;
+
          width: 150px;
-
white-space: nowrap;
+
          white-space: nowrap;
-
text-align: left;
+
          text-align: left;
-
text-decoration: none;
+
          text-decoration: none;
-
left: -2px;
+
          left: -2px;
-
background: #8bff35;
+
          background: #8bff35;
-
color: #000;
+
          color: #000;
-
font: 12px Verdana;
+
          font: 12px Verdana;
-
border-left: 2px solid #131313;
+
          border-left: 2px solid #131313;
-
border-right: 3px solid #8bff35;
+
          border-right: 3px solid #8bff35;
-
}
+
        }
-
#nav div a:hover {
+
        #nav div a:hover {
-
background: #8bff35;
+
          background: #8bff35;
-
color: #FFF;
+
          color: #FFF;
-
border-left: 2px solid #131313;
+
          border-left: 2px solid #131313;
-
border-right: 3px solid #8bff35;
+
          border-right: 3px solid #8bff35;
-
}
+
        }
-
</style>
+
  </style>
</head>
</head>
Line 169: Line 164:
-
<img src="http://i1112.photobucket.com/albums/k499/sjdixon1/2011logo.jpg" class="bannerImage" title="University of Calgary iGEM Team 2010"></img>
+
  <img src="http://i1112.photobucket.com/albums/k499/sjdixon1/2011logo.jpg" class="bannerImage" title="University of Calgary iGEM Team 2010"></img>
-
<div class="menuBar">
+
  <div class="menuBar">
-
<ul id="nav">
+
    <ul id="nav">
-
<li>
+
      <li>
-
<a href="https://2011.igem.org/Team:Calgary"
+
      <a href="https://2011.igem.org/Team:Calgary"
-
onmouseover="mopen('m1')"
+
        onmouseover="mopen('m1')"
-
onmouseout="mclosetime()">
+
        onmouseout="mclosetime()">
-
Home</a>
+
        Home</a>
-
</li>
+
      </li>
-
<li>
+
      <li>
-
<a href="https://2011.igem.org/Team:Calgary/Team"
+
      <a href="https://2011.igem.org/Team:Calgary/Team"
-
onmouseover="mopen('m2')"
+
        onmouseover="mopen('m2')"
-
onmouseout="mclosetime()">
+
        onmouseout="mclosetime()">
-
Team</a>
+
        Team</a>
-
<div id="m2"
+
        <div id="m2"
-
onmouseover="mcancelclosetime()"
+
          onmouseover="mcancelclosetime()"
-
onmouseout="mclosetime()">
+
          onmouseout="mclosetime()">
-
<a href="https://igem.org/Team.cgi?id=640">Official Team Profile</a>
+
          <a href="https://igem.org/Team.cgi?id=640">Official Team Profile</a>
-
<a href="https://2011.igem.org/Team:Calgary/Team/Biographies">Biographies</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Team/Biographies">Biographies</a>
-
<a href="https://2011.igem.org/Team:Calgary/Team/Facilitators">Facilitators</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Team/Facilitators">Facilitators</a>
-
<a href="https://2011.igem.org/Team:Calgary/Team/About_The_University">About the University</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Team/About_The_University">About the University</a>
-
<a href="https://2011.igem.org/Team:Calgary/Team/Acknowledgements">Acknowledgements</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Team/Acknowledgements">Acknowledgements</a>
-
</div>
+
        </div>
-
</li>
+
      </li>
-
<li>
+
      <li>
-
<a href="https://2011.igem.org/Team:Calgary/Project"
+
      <a href="https://2011.igem.org/Team:Calgary/Project"
-
onmouseover="mopen('m3')"
+
        onmouseover="mopen('m3')"
-
onmouseout="mclosetime()">
+
        onmouseout="mclosetime()">
-
Project</a>
+
        Project</a>
-
<div id="m3"
+
        <div id="m3"
-
onmouseover="mcancelclosetime()"
+
          onmouseover="mcancelclosetime()"
-
onmouseout="mclosetime()">
+
          onmouseout="mclosetime()">
-
<a href="https://2011.igem.org/Team:Calgary/Project">Overview</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Project">Overview</a>
-
<a href="https://2011.igem.org/Team:Calgary/Project/Transcription">Transcription/Translation</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Project/Transcription">Transcription/Translation</a>
-
<a href="https://2011.igem.org/Team:Calgary/Project/misfolding_overview">Protein Misfolding</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Project/misfolding_overview">Protein Misfolding</a>
-
<a href="https://2011.igem.org/Team:Calgary/Project/Controls">Testing Our System</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Project/Controls">Testing Our System</a>
-
<a href="https://2011.igem.org/Team:Calgary/Project/Achievements">Achievements</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Project/Achievements">Achievements</a>
-
</div>
+
        </div>
-
</li>
+
      </li>
-
+
     
-
<li><a href="https://2011.igem.org/Team:Calgary/Parts/Parts_Submitted"
+
      <li><a href="https://2011.igem.org/Team:Calgary/Parts/Parts_Submitted"
-
onmouseover="mopen('m4')"
+
        onmouseover="mopen('m4')"
-
onmouseout="mclosetime()">
+
        onmouseout="mclosetime()">
-
Parts</a>
+
        Parts</a>
-
<div id="m4"
+
        <div id="m4"
-
onmouseover="mcancelclosetime()"
+
          onmouseover="mcancelclosetime()"
-
onmouseout="mclosetime()">
+
          onmouseout="mclosetime()">
-
<a href="https://2011.igem.org/Team:Calgary/Parts/Parts_Submitted">Parts Submitted</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Parts/Parts_Submitted">Parts Submitted</a>
-
<a href="https://2011.igem.org/Team:Calgary/Parts/Characterization">Characterization</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Parts/Characterization">Characterization</a>
-
</div>
+
        </div>
-
</li>
+
      </li>
-
<li><a href="https://2011.igem.org/Team:Calgary/Notebook/Calendar"
+
      <li><a href="https://2011.igem.org/Team:Calgary/Notebook/Calendar"
-
onmouseover="mopen('m5')"
+
        onmouseover="mopen('m5')"
-
onmouseout="mclosetime()">
+
        onmouseout="mclosetime()">
-
Notebook</a>
+
        Notebook</a>
-
<div id="m5"
+
        <div id="m5"
-
onmouseover="mcancelclosetime()"
+
          onmouseover="mcancelclosetime()"
-
onmouseout="mclosetime()">
+
          onmouseout="mclosetime()">
-
<a href="https://2011.igem.org/Team:Calgary/Notebook/Calendar">Calendar</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Notebook/Calendar">Calendar</a>
-
<a href="https://2011.igem.org/Team:Calgary/Notebook/Future_Directions">Future Directions</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Notebook/Future_Directions">Future Directions</a>
-
<a href="https://2011.igem.org/Team:Calgary/Notebook/Protocols">Protocols</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Notebook/Protocols">Protocols</a>
-
</div>
+
        </div>
-
</li>
+
      </li>
-
<li><a href="https://2011.igem.org/Team:Calgary/Modelling"
+
      <li><a href="https://2011.igem.org/Team:Calgary/Modelling"
-
onmouseover="mopen('m6')"
+
        onmouseover="mopen('m6')"
-
onmouseout="mclosetime()">
+
        onmouseout="mclosetime()">
-
Modelling</a>
+
        Modelling</a>
-
<div id="m6"
+
        <div id="m6"
-
onmouseover="mcancelclosetime()"
+
          onmouseover="mcancelclosetime()"
-
onmouseout="mclosetime()">
+
          onmouseout="mclosetime()">
-
<a href="https://2011.igem.org/Team:Calgary/Modelling/MATLAB">MATLAB</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Modelling/MATLAB">MATLAB</a>
-
<a href="https://2011.igem.org/Team:Calgary/Modelling/Maya">Animation</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Modelling/Maya">Animation</a>
-
</div>
+
        </div>
-
</li>
+
      </li>
-
<li><a href="https://2011.igem.org/Team:Calgary/Considerations"
+
      <li><a href="https://2011.igem.org/Team:Calgary/Considerations"
-
onmouseover="mopen('m7')"
+
        onmouseover="mopen('m7')"
-
onmouseout="mclosetime()">
+
        onmouseout="mclosetime()">
-
Considerations</a>
+
        Considerations</a>
-
<div id="m7"
+
        <div id="m7"
-
onmouseover="mcancelclosetime()"
+
          onmouseover="mcancelclosetime()"
-
onmouseout="mclosetime()">
+
          onmouseout="mclosetime()">
-
<a href="https://2011.igem.org/Team:Calgary/Community/Ethics">Ethics/Human Practices</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Community/Ethics">Ethics/Human Practices</a>
                                         <a href="https://2011.igem.org/Team:Calgary/Community/Safety">Safety</a>
                                         <a href="https://2011.igem.org/Team:Calgary/Community/Safety">Safety</a>
-
<a href="https://2011.igem.org/Team:Calgary/Community/Gallery">Gallery</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Community/Gallery">Gallery</a>
-
<a href="https://2011.igem.org/Team:Calgary/Community/Conferences">Conferences</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Community/Conferences">Conferences</a>
-
<a href="https://2011.igem.org/Team:Calgary/Community/Suffield">DRDC Suffield</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Community/Suffield">DRDC Suffield</a>
-
<a href="https://2011.igem.org/Team:Calgary/Community/Podcasts">Podcasts</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Community/Podcasts">Podcasts</a>
-
<a href="https://2011.igem.org/Team:Calgary/Community/Blog">Visit Our Blog!</a>
+
          <a href="https://2011.igem.org/Team:Calgary/Community/Blog">Visit Our Blog!</a>
-
</div>
+
        </div>
-
</li>
+
      </li>
-
<li><a href="https://2011.igem.org/Team:Calgary/Sponsors">Sponsors</a></li>
+
      <li><a href="https://2011.igem.org/Team:Calgary/Sponsors">Sponsors</a></li>
-
<li><a class="menuend" href="https://2011.igem.org/Team:Calgary/Extras">Extras</a></li>
+
      <li><a class="menuend" href="https://2011.igem.org/Team:Calgary/Extras">Extras</a></li>
-
</ul>
+
    </ul>
-
</div>
+
  </div>
-
+
 
</body>
</body>
</html>
</html>

Revision as of 15:26, 25 May 2011