Rob wrote:
So I'm still not clear on what you are trying to accomplish. Now you
have an array which contains all your DIV ids. I'm not sure I see an
applicaton for such an array (but I'm new at this so I may be missing
something:).
Hmhmhmhmhm........hahaha...!!!
I am try to make my own pull down menu in DHTML = JavaScript + CSS
I know there are many JavaScript Menu out there to download.
But they all require you have greate amount of JavaScript programming
skills. I hate to read somebody's poor documents.
So I designed write by my own. Just HTML with
minimum JavaScript for onMouseOver, onMouseOut and onClick
plus a CSS file.
<a href=# onMouseOver="pulldown('mydiv0')">Menu 0</a>
<a href=# onMouseOver="pulldown('mydiv1')">Menu 1</a>
.....
<a href=# onMouseOver="pulldown('mydivN')">Menu N</a>
You really can't do onMouseOut="collapse('mydivid')"
Because let's say you move mouse pointer to Menu 1,
it do pulldown for mydiv1, greate! but once you
move the pointer to the sub-menu in Menu 1, it then do
collapse for Menu 1. so I NEVER able to select sub-menu from
Menu 1.
Therefore, when I move mouse pointer to Menu 1, I want to make sure
Menu 0, Menu 2, Menu N all are collapse if the are/were pull down.
Similar, when I move mouse pointer to Menu 0, Menu 1, Menu 2, ..
will collapse.
Now you understand why I want get an array of <div name="mydiv" id="xx">
?
Hahahaha........!!!
Again, thank Q very much to the test for me. I'll use your part of codes
to finish my last part of programs