Template:CalgaryMenu
From 2011.igem.org
(Difference between revisions)
Line 3: | Line 3: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | var timeout = 500; | |
+ | var closetimer = 0; | ||
+ | var ddmenuitem = 0; | ||
- | + | // open hidden layer | |
- | + | function mopen(id) | |
- | + | { | |
- | + | mcancelclosetime(); | |
- | + | ||
- | + | 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; | |
</script> | </script> | ||
Line 179: | Line 175: | ||
<li> | <li> | ||
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary" |
onmouseover="mopen('m1')" | onmouseover="mopen('m1')" | ||
onmouseout="mclosetime()"> | onmouseout="mclosetime()"> | ||
Line 186: | Line 182: | ||
<li> | <li> | ||
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Team" |
onmouseover="mopen('m2')" | onmouseover="mopen('m2')" | ||
onmouseout="mclosetime()"> | onmouseout="mclosetime()"> | ||
Line 193: | Line 189: | ||
onmouseover="mcancelclosetime()" | onmouseover="mcancelclosetime()" | ||
onmouseout="mclosetime()"> | onmouseout="mclosetime()"> | ||
- | <a href="https://igem.org/Team | + | <a href="https://2011.igem.org/Team:Calgary/Team">Official Team Profile</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Team/Biographies">Biographies</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Team/Facilitators">Facilitators</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Team/About_The_University">About the University</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Team/Acknowledgements">Acknowledgements</a> |
</div> | </div> | ||
</li> | </li> | ||
<li> | <li> | ||
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Project" |
onmouseover="mopen('m3')" | onmouseover="mopen('m3')" | ||
onmouseout="mclosetime()"> | onmouseout="mclosetime()"> | ||
Line 209: | Line 205: | ||
onmouseover="mcancelclosetime()" | onmouseover="mcancelclosetime()" | ||
onmouseout="mclosetime()"> | onmouseout="mclosetime()"> | ||
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Project">Overview</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Project/Transcription">Transcription/Translation</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Project/misfolding_overview">Protein Misfolding</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Project/Controls">Testing Our System</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Project/Achievements">Achievements</a> |
</div> | </div> | ||
Line 219: | Line 215: | ||
- | <li><a href="https:// | + | <li><a href="https://2011.igem.org/Team:Calgary/Parts/Parts_Submitted" |
onmouseover="mopen('m4')" | onmouseover="mopen('m4')" | ||
onmouseout="mclosetime()"> | onmouseout="mclosetime()"> | ||
Line 226: | Line 222: | ||
onmouseover="mcancelclosetime()" | onmouseover="mcancelclosetime()" | ||
onmouseout="mclosetime()"> | onmouseout="mclosetime()"> | ||
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Parts/Parts_Submitted">Parts Submitted</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Parts/Characterization">Characterization</a> |
</div> | </div> | ||
</li> | </li> | ||
- | <li><a href="https:// | + | <li><a href="https://2011.igem.org/Team:Calgary/Notebook" |
onmouseover="mopen('m5')" | onmouseover="mopen('m5')" | ||
onmouseout="mclosetime()"> | onmouseout="mclosetime()"> | ||
Line 240: | Line 236: | ||
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:// | + | <a href="https://2011.igem.org/Team:Calgary/Notebook/Future_Directions">Future Directions</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Notebook/Safety_And_Protocols">Protocols</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Notebook/Safety">Safety</a> |
</div> | </div> | ||
</li> | </li> | ||
- | <li><a href="https:// | + | <li><a href="https://2011.igem.org/Team:Calgary/Modelling" |
onmouseover="mopen('m6')" | onmouseover="mopen('m6')" | ||
onmouseout="mclosetime()"> | onmouseout="mclosetime()"> | ||
Line 254: | Line 250: | ||
onmouseover="mcancelclosetime()" | onmouseover="mcancelclosetime()" | ||
onmouseout="mclosetime()"> | onmouseout="mclosetime()"> | ||
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Modelling/MATLAB">MATLAB</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Modelling/Maya">Animation</a> |
</div> | </div> | ||
</li> | </li> | ||
- | <li><a href="https:// | + | <li><a href="https://2011.igem.org/Team:Calgary/Community" |
onmouseover="mopen('m7')" | onmouseover="mopen('m7')" | ||
onmouseout="mclosetime()"> | onmouseout="mclosetime()"> | ||
Line 267: | Line 263: | ||
onmouseover="mcancelclosetime()" | onmouseover="mcancelclosetime()" | ||
onmouseout="mclosetime()"> | onmouseout="mclosetime()"> | ||
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Community/Ethics">Ethics/Human Practices</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Community/Gallery">Gallery</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Community/Conferences">Conferences</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Community/Suffield">DRDC Suffield</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Community/Podcasts">Podcasts</a> |
- | <a href="https:// | + | <a href="https://2011.igem.org/Team:Calgary/Community/Blog">Visit Our Blog!</a> |
</div> | </div> | ||
</li> | </li> | ||
- | <li><a href="https:// | + | <li><a href="https://2011.igem.org/Team:Calgary/Sponsors">Sponsors</a></li> |
- | <li><a class="menuend" href="https:// | + | <li><a class="menuend" href="https://2011.igem.org/Team:Calgary/Extras">Extras</a></li> |
</ul> | </ul> |
Revision as of 17:05, 17 May 2011