I
Ian Collins
I've been scratching my head over this one, I have a simple menu,
<div id="linksDiv">
<ul id="viewMenu" class="hidden">
<li>
<a href="customer.html">Customer</a>
</li>
<li>
<a href="finance.html">Finance</a>
</li>
</ul>
</div>
Where hidden is defined
..hidden { visibility: hidden; }
The menu is revealed by clicking one of several entries in a top level
menu. The reveal code is:
this.viewMenu.className = 'viewMenuVisible';
this.viewMenu.style.top = (event.clientY-100)+'px';
where viewMenuVisible contains
..viewMenuVisible
{
visibility: visible;
display: block;
background-color: lightblue;
color: black;
}
The problem is, in IE clicking one of the top level entries reveals the
light blue div, but not the links. Click again, or click another entry
and everything appears.
Works fine on FF or Opera.
I can force the issue by explicitly setting the <a> elements
style.visibility = 'visible', but that's a bit ugly.
Any ideas?
<div id="linksDiv">
<ul id="viewMenu" class="hidden">
<li>
<a href="customer.html">Customer</a>
</li>
<li>
<a href="finance.html">Finance</a>
</li>
</ul>
</div>
Where hidden is defined
..hidden { visibility: hidden; }
The menu is revealed by clicking one of several entries in a top level
menu. The reveal code is:
this.viewMenu.className = 'viewMenuVisible';
this.viewMenu.style.top = (event.clientY-100)+'px';
where viewMenuVisible contains
..viewMenuVisible
{
visibility: visible;
display: block;
background-color: lightblue;
color: black;
}
The problem is, in IE clicking one of the top level entries reveals the
light blue div, but not the links. Click again, or click another entry
and everything appears.
Works fine on FF or Opera.
I can force the issue by explicitly setting the <a> elements
style.visibility = 'visible', but that's a bit ugly.
Any ideas?