dallen24
02-05-2005, 02:51 AM
Hi. I was wondering if someone here could help me. My web site has a very simple folder tree menu bar. Example:
<a id="club_t" href="##" onclick="return Outline(this)"><img id="club_i" alt="" border="0" src="fold.gif">Club Links</a><br>
<div id="club_s" class="off">
<a href="articles.htm" target="main">Articles/Cartoons</a><br>
<a href="photo1.htm" target="main">Astro Images</a><br>
<a href="links.htm" target="main">Astro Links</a><br>
<a href="events.htm" target="main">Club Events</a><br>
<a href="photo2.htm" target="main">Club Images</a><br>
<a href="custom.htm" target="main">Custom Links</a><br>
<a href="membership.htm" target="main">Membership</a><br>
</div>
In the style sheet, class.off is hidden, class.on is visible. Each id indicates the <a>, <img>, or <div>. The user clicks <a>: If the folder is closed, it is opened, Outline() changes <img src="open.gif"> and <div class="on">. If the user clicks <a> again, everything is reversed.
I want to make a modification. For certain folders, when the user moves the mouse cursor over the <a>, I want the folder to open. But I don't want to folder to close until the mouse cursor is not only off the <a>, but also off the <div> (or clicked a link with the <div>).
I've tried to look at other navigation menu bars, but can't figure out how they do it. Any advice would be greatly appreciated...Dennis
<a id="club_t" href="##" onclick="return Outline(this)"><img id="club_i" alt="" border="0" src="fold.gif">Club Links</a><br>
<div id="club_s" class="off">
<a href="articles.htm" target="main">Articles/Cartoons</a><br>
<a href="photo1.htm" target="main">Astro Images</a><br>
<a href="links.htm" target="main">Astro Links</a><br>
<a href="events.htm" target="main">Club Events</a><br>
<a href="photo2.htm" target="main">Club Images</a><br>
<a href="custom.htm" target="main">Custom Links</a><br>
<a href="membership.htm" target="main">Membership</a><br>
</div>
In the style sheet, class.off is hidden, class.on is visible. Each id indicates the <a>, <img>, or <div>. The user clicks <a>: If the folder is closed, it is opened, Outline() changes <img src="open.gif"> and <div class="on">. If the user clicks <a> again, everything is reversed.
I want to make a modification. For certain folders, when the user moves the mouse cursor over the <a>, I want the folder to open. But I don't want to folder to close until the mouse cursor is not only off the <a>, but also off the <div> (or clicked a link with the <div>).
I've tried to look at other navigation menu bars, but can't figure out how they do it. Any advice would be greatly appreciated...Dennis