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 within 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 6 2712
On Fri, 4 Feb 2005 21:54:01 -0500 Dennis Allen wrote: 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>
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 within 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
Have I got a deal for you. www.4thorder.us
Take a look at the script Mike Falatine offers.
He makes good use of a simple <ul><li> menu tree to any level you want.
You'll see how it all comes nicely together.
In your case, what you're missing is a simple thing to add in.
<div class="on" style="display:block;">
<div class="off" style="display:none;">
Now what you need to do is to switch them on/off as needed. www.somestuff.batcave.net
A short script can do that easily.
And there are ways of handling that in CSS as well.
You may want to post a working example somewhere for others to see what
you're doing.
Don't have space on the web? www.batcave.net get 50mb for free.
"Richard" <An*******@127.001> wrote in message news:cu*********@news4.newsguy.com... On Fri, 4 Feb 2005 21:54:01 -0500 Dennis Allen wrote: In your case, what you're missing is a simple thing to add in. <div class="on" style="display:block;"> <div class="off" style="display:none;">
That's already defined in the css, using <a onclick="return Outlline()"> to switch between the on and off classes. For certain folders, I want to use mouseover and mouseout. Again, <a mouseover> to open the <div>, but the mouse cursor has to be off everything (or a <div> link clicked) before closing the <div>.
"Dennis Allen" <de****@dennisallen.com> skrev i meddelandet
news:11*************@corp.supernews.com...
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>
Incidentally: if you add white-space:nowrap in the a:link CSS, you don't
have to bother with .
Joakim Braun
Dennis Allen wrote: "Richard" <An*******@127.001> wrote in message news:cu*********@news4.newsguy.com...
On Fri, 4 Feb 2005 21:54:01 -0500 Dennis Allen wrote:
In your case, what you're missing is a simple thing to add in. <div class="on" style="display:block;"> <div class="off" style="display:none;">
That's already defined in the css, using <a onclick="return Outlline()"> to switch between the on and off classes. For certain folders, I want to use mouseover and mouseout. Again, <a mouseover> to open the <div>, but the mouse cursor has to be off everything (or a <div> link clicked) before closing the <div>.
Put an onmouseover in the a tag and the corresponding div tag that sets
it to visible. onmouseout of both make the div hidden. When the mouse
leaves the a tag the onmouseout will hide it and the onmouseover of the
div will keep it visible.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Ah. Tried it and it works. I thought maybe the <a mouseout> would hide the <div> before the <div mouseover> could fire. Nope. Thanks...Dennis
"Randy Webb" <Hi************@aol.com> wrote in message news:AO********************@comcast.com... Dennis Allen wrote: "Richard" <An*******@127.001> wrote in message news:cu*********@news4.newsguy.com... On Fri, 4 Feb 2005 21:54:01 -0500 Dennis Allen wrote:
In your case, what you're missing is a simple thing to add in. <div class="on" style="display:block;"> <div class="off" style="display:none;"> That's already defined in the css, using <a onclick="return Outlline()"> to switch between the on and off classes. For certain folders, I want to use mouseover and mouseout. Again, <a mouseover> to open the <div>, but the mouse cursor has to be off everything (or a <div> link clicked) before closing the <div>. Put an onmouseover in the a tag and the corresponding div tag that sets it to visible. onmouseout of both make the div hidden. When the mouse leaves the a tag the onmouseout will hide it and the onmouseover of the div will keep it visible. -- Randy comp.lang.javascript FAQ - http://jibbering.com/faq
Thanks...Dennis
"Joakim Braun" <jo**********@jfbraun.removethis.com> wrote in message news:FC*******************@nntpserver.swip.net... "Dennis Allen" <de****@dennisallen.com> skrev i meddelandet news:11*************@corp.supernews.com... 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> Incidentally: if you add white-space:nowrap in the a:link CSS, you don't have to bother with . Joakim Braun This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jo |
last post by:
I don't know if this can be done.. But here is what i am trying to
do...
I have a tree menu on a frameless page. I have the menu on the right
hand side and a CGI web form post on the left....
|
by: scott |
last post by:
I'm creating a tree menu that uses FSO to read folders, subfolders and
files. I'd like for each folder to have capabilty of being either Level
1,2,3,4 or 5 security. The 5 Levels are my security...
|
by: johkar |
last post by:
I am confused on childNodes or children. When you have nested lists,
I would think it would all be one list in the Dom, this doesn't seem
to be the case. So how do you traverse an unordered list?...
|
by: Sergio Millich |
last post by:
I have an annoyîng problem with a javascript tree. When you scroll
down to the bottom of the tree and click to open a node the tree is
refreshed and scrolls back to the top, hiding the node. Is...
|
by: Tree menu using XML |
last post by:
I have one XML file that has nodes and sub node and each and every node has
the attribute call visible if its value is true then diplay this node else
don't display thid node, but this condition i...
|
by: Tarique Jawed |
last post by:
Alright I needed some help regarding a removal of a binary search
tree. Yes its for a class, and yes I have tried working on it on my
own, so no patronizing please. I have most of the code working,...
|
by: John H. |
last post by:
In effort to understand (Outlook) MAPI folder tree
structure wrote simple linear code below to navigate
tree.
Successive "...Folders.GetNext()"'s return same folder at
all levels of tree. What...
|
by: w.p. |
last post by:
Hello!
I have some trouble with my GUI. I have left panel with foldpanelbar,
but i need one item but not collapsed - simple button. I split my left
panel into two foldpanelbars with one button...
|
by: preet |
last post by:
i tried to find tutorials to build a working tree menu from contents of
current folder but was unable to find any, neither did i find any
working scrit to build on
can anyone suggest something
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |