Template:Imperial/Navbar2: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
mcancelclosetime(); | mcancelclosetime(); | ||
// close old layer | // close old layer | ||
if(ddmenuitem) ddmenuitem.style. | if(ddmenuitem) ddmenuitem.style.left = '-9999em'; | ||
// get new layer and show it | // get new layer and show it | ||
ddmenuitem = document.getElementById(id); | ddmenuitem = document.getElementById(id); | ||
ddmenuitem.style. | ddmenuitem.style.left = '0'; | ||
} | } | ||
// close showed layer | // close showed layer | ||
function mclose() | function mclose() | ||
{ | { | ||
if(ddmenuitem) ddmenuitem.style. | if(ddmenuitem) ddmenuitem.style.left = '-9999em'; | ||
} | } | ||
// go close timer | // go close timer |
Revision as of 04:14, 12 September 2008
<html><script language="JavaScript"> var timeout = 250; var closetimer = 0; var ddmenuitem = 0;
// open hidden layer function mopen(id) { // cancel close timer mcancelclosetime(); // close old layer if(ddmenuitem) ddmenuitem.style.left = '-9999em'; // get new layer and show it ddmenuitem = document.getElementById(id); ddmenuitem.style.left = '0'; } // close showed layer function mclose() { if(ddmenuitem) ddmenuitem.style.left = '-9999em'; } // 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></html>
<html><a href=http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Home><img width=50px src=http://i59.photobucket.com/albums/g305/Timpski/Home.png></img</a></html> | <html><ul id="sddm"><a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Project"
onmouseover="mopen('m1')" onmouseout="mclosetime()">Biofabricator Subtilis</a> <div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Project">Project Specifications</a> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Chassis_1">Why B. subtilis?</a> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Chassis_2">B. subtilis: Benefits vs Challenges</a> </div></ul></html> | <html><ul id="sddm"><a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Wet_Lab"
onmouseover="mopen('m2')" onmouseout="mclosetime()">Wet Lab</a> <div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Wet_Lab">Wet Lab Hub</a> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Cloning_Strategy">Cloning Strategy</a> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Protocols">Experiments & Protocols</a> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Major_Results">Experimental Results</a> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Biobricks">BioBricks & Characterisation</a> </div> </ul></html> | <html><ul id="sddm"><a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Dry_Lab"
onmouseover="mopen('m3')" onmouseout="mclosetime()">Dry Lab</a> <div id="m3" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Dry_Lab">Dry Lab Hub</a> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Genetic_Circuit">Genetic Circuits</a> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Growth_Curve">Growth Curves</a> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Motility">Motility Analysis</a> <a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Appendices">Appendices</a> </div> </ul></html> | <html><ul id="sddm"><a href="http://2008.igem.org/Team:Imperial_College/Notebook"> Notebook </a></ul></html> | <html><ul id="sddm"><a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Team"> Our Team </a></ul></html> |