Team:KULeuven/Tools/Navigation Bar

From 2008.igem.org

(Difference between revisions)
m
m
Line 83: Line 83:
#sddm div ul
#sddm div ul
-
{ margin: 0;
+
{ position: relative;
 +
margin: 0;
width: auto;
width: auto;
list-style: none}
list-style: none}
Line 90: Line 91:
{ position: absolute;
{ position: absolute;
left: 100%;
left: 100%;
 +
top: 0;
width: 100%;
width: 100%;
padding: 0;
padding: 0;
Line 121: Line 123:
mcancelclosetime();
mcancelclosetime();
-
// close old layer
+
// ddmenuitem = document.getElementById(id);
 +
 
 +
// close old layer if not a container for the new layer
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
// get new layer and show it
// get new layer and show it
ddmenuitem = document.getElementById(id);
ddmenuitem = document.getElementById(id);
 +
document.getElementById("test").value = ddmenuitem.parentNode.tagName == "UL";
ddmenuitem.style.visibility = 'visible';
ddmenuitem.style.visibility = 'visible';
Line 158: Line 163:
<!-- BEGIN OF MENU BUILD UP -->
<!-- BEGIN OF MENU BUILD UP -->
 +
 +
<input type="text" id="test" value="hey"/>
 +
<!-- FOLLOWING LINE CENTER ALIGNS THE BAR HORIZONTALLY -->
<!-- FOLLOWING LINE CENTER ALIGNS THE BAR HORIZONTALLY -->
<div style="margin: 1em auto; width: 90%;">
<div style="margin: 1em auto; width: 90%;">

Revision as of 23:14, 26 July 2008



Kulbanner.jpg