Template:Imperial/Navbar2: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
Tom Adie (talk | contribs)
mNo edit summary
Tom Adie (talk | contribs)
mNo edit summary
Line 41: Line 41:
<tr><td width=50px bgcolor=white><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>
<tr><td width=50px bgcolor=white><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>
</td><td align="center" width="20%" valign="bottom"><html><ul id="sddm"><a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Project"  
</td><td align="center" width="20%" valign="bottom"><html><ul id="sddm"><a href="http://openwetware.org/wiki/IGEM:IMPERIAL/2008/New/Project"  
onclick="mopen('m1')"
onmouseover="mopen('m1')"  
onmouseover="mopen('m1')"  
onmouseout="mclosetime()">Biofabricator Subtilis</a>
onmouseout="mclosetime()">Biofabricator Subtilis</a>

Revision as of 18:21, 16 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.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></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></html> <html></html> <html></html> <html></html> <html></html>