Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:32

always-visible-problem


Poster: gabi_dd
Dated: Wednesday April 21 2004 - 7:56:48 BST

Hi folks,
sorry for my english ...

I've a all horizontal menu with 2 levels.
The first level is always visible.
When I'm clicked a item from first level, the second level must always visible.
But, the problem is: when my mouse over the next item from first level - the second level must hidden, the second level from this next item must always visible.
How can I do this?
Thanks for your help!

gabi_dd


Poster: Ruth
Dated: Wednesday April 21 2004 - 12:33:23 BST

I'm not sure I understand. Let's say your first level has
Home | Item1 | Item2 | Item 3

So, are you saying that when you click on Item 1 you want the second level menu to always stay visible even if you mouseover Item2? Or do you just want the first item second level menu to remain alive until you mouseover something else?

If you have a url so we can see it, that would be a help.

Ruth


Poster: gabi_dd
Dated: Wednesday April 21 2004 - 12:46:55 BST

Hi, Ruth,
thanks for your answer.
the url is http://www.wieland-bauservice.de/wielan ... milienhaus (allesneu/neu2004), here is an .htaccess. Only item 1 and item 3 is with second level menu.

first level: item 1 | item 2 | item 3 --> always visible
second level: item 1_1 | item 1_2 | item 1_3 ...

When click on item 1_1, I will see the second level from item 1 always.
When mouse over item 3, then the second level from item 1 must hidden, the second level from item 3 always visible, when I'm clicked item 3_1 ...

Ohjeeeee.
Thanks
gabi_dd


Poster: Ruth
Dated: Wednesday April 21 2004 - 13:21:26 BST

Ok, just to be clear. When you mouseover item 1 the second level shows and you want to click on the first [or any item] in that level and when you click to get the page into the iframe you want the second level to remain visible. Try putting in keepalive=1; in the Ihr Ziel menu and the Ihr Partner.

NOTE: You need to upgrade to the newest version. You are using 5.01 and this isn't supported anymore. It is now 5.13. Also, you are not placing the menu in the table correctly. http://www.milonic.com/menusample9.php Please read the information here. The way you have it now some browsers may break the menu up, some not show the submenus correctly, and in some it might not be usable at all. I'm not sure that keepalive will function properly the way you have placed the menu.

Once you upgrade, if you need help with placing the menu in the table, we will be glad to help you. :)

Ruth


Poster: gabi_dd
Dated: Wednesday April 21 2004 - 14:55:52 BST

OH, i must upgrade. Yes! But, today is not time ... :cry: next week is upgrad-time!

keepalive=1 is a good idea - the menu is now visible. But: when I click in a item in second level - the menu is hidden ...

And now? I must upgrad - i know ...

help ......
best regards
gabi_dd


Poster: gabi_dd
Dated: Monday April 26 2004 - 9:35:49 BST

Hi,
I have now updated - my problem is the same.

keepalive=1 is ok - but when I click, the menu is not visible ...

Thanks for your help
gabi_dd


Poster: Maz
Dated: Monday April 26 2004 - 10:12:19 BST

It does what you say, but maybe you want the menu to stay open when you click on another page.

Something like, if page is mainmenu 1 then keepalive submenu 1?

After going over the menu a few times I did get one submenu on top of another, not sure if that is what you are seeing.

Try moving the scripts from the <head> to under <body> tag.

maz


Poster: gabi_dd
Dated: Monday April 26 2004 - 12:31:51 BST

Yes, I will: the menu is open, when I click another page.

I click menu 1/submenu item 1 --> page submenu 1 AND submenu 1 is visible. that is, what I will.

At the moment I click submenu item 1, page from submenu 1 ist visible - but menu ist hidden.

gabi_dd
thanks for all


Poster: Ruth
Dated: Monday April 26 2004 - 18:40:22 BST

Hi gabi
I've been gone for a bit and now I can't get to the page to check since you did the upgrade. Is the previous posted url not valid anymore?

Ruth


Poster: John
Dated: Monday April 26 2004 - 18:58:58 BST

Getting a username/password failure here.


Poster: Ruth
Dated: Monday April 26 2004 - 19:19:18 BST

Right, John. That's what I get.

Ruth


Poster: gabi_dd
Dated: Tuesday April 27 2004 - 8:16:13 BST

The url is
http://www.wieland-bauservice.de/wielan ... milienhaus

login allesneu
password 2004neu

thanks
gabi_dd


Poster: Ruth
Dated: Tuesday April 27 2004 - 14:41:31 BST

This is way beyond my skill level, so I'm not sure about what I'm stating here.

You seem to be using an iframe, however I don't see that the links open the url in the iframe it seems to load a whole new page each link you click. Now, I don't know that fixing that would actually make the menu stay visible, but for sure having the page reload each time you click a link will return the menu to the original load value. In order to use the iframe structure and call the page into the iframe with the menu you need to use a custom javascript function which works in conjunction with the menu because it uses built in menu functions to get the references to the iframe. You can find the information here opening pages in an iframe - menu sample 11

Again, I doubt this will fix what you want, but you need to get the iframe function call working before we could really address and probably fix the other issue. I do take it you want the pages to open in that iframe or you wouldn't be using it??

Ruth


Poster: gabi_dd
Dated: Sunday May 2 2004 - 19:57:51 BST

Thank you for your answer. However the problem is not connected the iframe. Everything concerning the iframe works as it should be. What I was trying to say is, that I need the menu, to be more specific: the drop down part of the menu, to be always visible. It should only _change_ (to another drop down category) if you hover another, currently not selected link of the primary menu (the upper one). Another problem is that if you hover out of a link without clicking it the menu should then automaticly display the catagory that was previously shown again (and stay visible as you read on the page).

gabi_dd


Poster: Ruth
Dated: Sunday May 2 2004 - 20:47:42 BST

Sorry, just so I understand what you want, are you saying that each time you click a link you want a new page to load and not have that link open the page in the iframe? It's important to understand that part in order to see if we can get the menu to do what you want. For example, if the pages are opening in the iframe then the actual page with the menu is always the same, whereas if they are opening as a whole new page then the menu is reloaded each time.

Ruth


Poster: gabi_dd
Dated: Sunday May 2 2004 - 21:01:54 BST

Well you're on the right path. Each time a link is clicked a page is loaded with a php script that then loads the correct page into the iframe. The php script is needed for some other stuff as well. So everytime a link is clicked the whole page "reloads".

gabi_dd


Poster: Maz
Dated: Monday May 3 2004 - 3:51:49 BST

Hi, maybe we are making this sound more difficult than you want.

if you use pagematch=/newpage.html; in menu-item it will highlight the menu item when the url is the same. Use pagecolor="#cccccc"; in your global styles to change the color when on that page. (these are just examples)

But if you want the submenu to stay open when the page loads, then Kevin might know if there is a way to add javascript on load to keepalive.

maz


Poster: gabi_dd
Dated: Wednesday June 2 2004 - 18:54:43 BST

Hi again and sorry for being away for so long. The problem however still exists and you pointed out the exact thing I want with:

Maz wrote:
But if you want the submenu to stay open when the page loads, then Kevin might know if there is a way to add javascript on load to keepalive.
maz


I would really appreciate any help you can give me.

gabi_dd


Poster: Ruth
Dated: Wednesday June 2 2004 - 22:29:32 BST

Hi gabbi_dd,
What you want the menu to do will require a pretty involved javascript function, even more involved since you are having the page reload each time instead of having the clicked links just open in the iframe. Perhaps someone browsing the forums who is javascript knowledgeable will take an interest in the problem.

Ruth