richard said:
Now that, is the response I would expect from a 10 year old.
Well while we are here I might point out that your question, with no
explanation at all for the questions reason, and presuming a "solution" that
is so totally wrong that we all learnt it in HTML 101 stuff, is what I would
expect from a 10 year old.
Do you want help with this or not? If not then you are going about it
exactly the right way.
I am attempting to design a menu system that will that will have 3
levels of choices.
Bad idea. These things are not accessible, unless you take great pains to
make them so. How will I get to those lower level items if I don't have a
mouse? You are, of course, making provision for that, aren't you?
Yeah sure I could use those premade scripts that show your choices as
long as the cursor is over that item. But I need stability.
So use one of them and modify it to suit your needs? From your original "10
year old" question it might just be better though if you don't attempt to
modify it.
Item 1 has only one choice.
Items 2 and 3 will have two sublevels to choose from.
Item 4 will have one level.
All of which is contained within "box1".
Why. Why not give them each a different box. You are going about this
entirely the wrong way, but then again this is your usual modus operandi.
And how did you get the menu items in the div in the first place?
What you see displayed is the content of your first level item choice.
So why show the others?
Why fart about with changing the contents of one single div? Why not do it
like all the other dropdown menu scripts (and CSS alternatives) out there?
Use one div per dropdown. Then all you have to do is swich the display mode
to 'block' for the active one.
Of course, I could just as well write a seperate page for each choice
but that would mean keeping track of that many more pages.
What? Who said anything about pages? We are talking about divs here. If you
can't keep track of four (yes, I counted) divs then maybe writing web pages
is not what you should be doing. Driving trucks, perhaps?