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:06
Submenu positioning [Now, With URL]
Poster: casca
Dated: Tuesday May 2 2006 - 20:09:01 BST
Hi,
My menu function very well, except for a little problem in IE6+
As an image say more than 1000 words, they see the following images:
(I had that to blur the alternatives because the site is not official still.)
In the first time that I browse the menu appears of this skill.
Then I slide mouse for another alternative and when I come back toward it he appears correct
Because this occurs? Only in the IE and submenu that it has scroll of the side?
Poster: Migru
Dated: Tuesday May 2 2006 - 21:55:31 BST
Hi
Quote:
As an image say more than 1000 words..........
I don´t think so, the code of your page will say more on bugs than any image can do. It is really difficult to comment what could cause this except for... that the menu has not been implemented the correct way...
Can´t you provide a url ?
Michael
Poster: casca
Dated: Wednesday May 3 2006 - 3:30:52 BST
Migru wrote:
Hi
Can´t you provide a url ?
Michael
Can´t you provide a url ?
Michael
Not yet..
Of any form all menus of my site function well and error-free of positioning.
The problem of the positioning occurs only in submenu with side scroll (overflow enable) and only in IE.
In Firefox, Mozilla, Netscape function normally
My page is mounted dynamically inside of a lop in PHP.
Poster: casca
Dated: Wednesday May 3 2006 - 3:32:55 BST
Migru wrote:
Hi
Can´t you provide a url ?
Michael
Can´t you provide a url ?
Michael
Not yet..
Of any form all menus of my site function well and error-free of positioning.
The problem of the positioning occurs only in submenu with side scroll (overflow enable) and only in IE.
In Firefox, Mozilla, Netscape function normally
My page is mounted dynamically inside of a lop in PHP, but I can try to copy the result of script.
Poster: casca
Dated: Wednesday May 3 2006 - 14:25:13 BST
Well, I hosted my menu in fortunecity to show my problem.
http://casca.fortunecity.co.uk
I simply copy and paste the script result of the PHP in html page.
Now it tries in the IE to place mouse on alternative "Assist?ncia\Servi?os M?edicos" of the menu.
It notices that submenu appears outside of position. Navigate the will to examine better.
In Firefox, Mozilla and Netscape this not occurs.
Poster: Migru
Dated: Thursday May 4 2006 - 0:50:51 BST
Hi
Your menu is obviously not positioned correct.
try screenposition="center";
One of my monitors for example is 1280 px wide, and the menu is left oriented, and everything above the menu is centered !!
Michael
on first mouseover (sub: assist?..) in IE, yes I´m aware, it is the first sub-sub-menu pops up using a "wrong" position it seems.
Cannot get access via this url to your js files (milonic and menu_data)
Poster: casca
Dated: Thursday May 4 2006 - 13:09:53 BST
Migru wrote:
Hi
Your menu is obviously not positioned correct.
try screenposition="center";
One of my monitors for example is 1280 px wide, and the menu is left oriented, and everything above the menu is centered !!
Your menu is obviously not positioned correct.
try screenposition="center";
One of my monitors for example is 1280 px wide, and the menu is left oriented, and everything above the menu is centered !!
Yes, it is with left orientation, but the submenus appears correctly (below your parent).
Migru wrote:
on first mouseover (sub: assist?..) in IE, yes I´m aware, it is the first sub-sub-menu pops up using a "wrong" position it seems.
Cannot get access via this url to your js files (milonic and menu_data)
Cannot get access via this url to your js files (milonic and menu_data)
This is the problem that I do not obtain to decide. Bug of js seems up to one. It sees that running mouse for another alternative and later return for "Assist?ncia\Servi?os M?edicos" it appears in the correct position.
Poster: Migru
Dated: Thursday May 4 2006 - 13:45:09 BST
Hi
do you use the latest version of the menu? Please study
http://www.milonic.com/integration.php
Quote:
FRIENDLY REMINDER: For support, it is required that the current version of the menu be installed.
For testing purpose you should prepare a html file which does not contain any other JavaScript code than thecode of the menu.
Based on that, you could proceed. There must be some interference with css or js.
Michael
Poster: casca
Dated: Thursday May 4 2006 - 19:10:51 BST
I use version Version - 5.747 [Pre Release]. Anyway I used version 5.746 too, but the problem persist.
It sees well, everything the menu functions well and is mounted of the same skill. The only difference is that in the menu that possesss "overflow=scroll" I placed "menuheight=250", not to occupy the screen all. Of any form, you want that I place here the conteudo of "menu_data.js"?
Poster: Migru
Dated: Friday May 5 2006 - 0:40:03 BST
Hi
Quote:
but the problem persist
I just tested, using IE 6, cannot confirm at the present state of the menu, that there is something unusual, it seems to work. So what is the problem?
What really disturbs is the advertising popup. Why do you have that implemented?
Michael
Poster: casca
Dated: Monday May 8 2006 - 19:57:27 BST
Migru wrote:
Hi
I just tested, using IE 6, cannot confirm at the present state of the menu, that there is something unusual, it seems to work. So what is the problem?
What really disturbs is the advertising popup. Why do you have that implemented?
Michael
I just tested, using IE 6, cannot confirm at the present state of the menu, that there is something unusual, it seems to work. So what is the problem?
What really disturbs is the advertising popup. Why do you have that implemented?
Michael
The problem is that I want that the menu has behavior in all the same submenus.
I do not want that it appears in the top of the screen and yes below of the parent as in all other alternatives.
See what it occurs if I set “followscroll = 1” (visits http://casca.fortunecity.co.uk/), it rolls the screen and it has access the menu.
In the alternative “Assist?ncia\Servi?os M?edicos” submenu appears in the top of the page.
Because only with it? I do not understand.
Poster: John
Dated: Monday May 8 2006 - 21:33:14 BST
You'll need to move back up to at least 5.746 for further support. You're now running 5.740, which is down-level.
Poster: casca
Dated: Thursday May 11 2006 - 14:48:08 BST
John wrote:
You'll need to move back up to at least 5.746 for further support. You're now running 5.740, which is down-level.
But the least version is 5.747, it is not for using this version?
Poster: Migru
Dated: Thursday May 11 2006 - 15:01:23 BST
Of course it is, the reply was posted when 5.546 was the actual release.
So use 5.747 .
M.
Poster: casca
Dated: Thursday May 11 2006 - 15:22:17 BST
Migru wrote:
Of course it is, the reply was posted when 5.546 was the actual release.
So use 5.747 .
M.
So use 5.747 .
M.
Ok, now is 5.747 in http://casca.fortunecity.co.uk, for tests.
But I have the same problem...
Poster: Migru
Dated: Thursday May 11 2006 - 15:42:36 BST
Quote:
But I have the same problem..
which is difficult to solve.
It is not a problem of the menu, its a problem of using different scripts and/or css whch obviously don´t fit together. First step, Use css styling instead of menu styles.
Look at http://www.milonic.com/cssbasedmenus.php
M.
Poster: casca
Dated: Friday May 12 2006 - 20:09:40 BST
Migru wrote:
Quote:
But I have the same problem..
which is difficult to solve.
It is not a problem of the menu, its a problem of using different scripts and/or css whch obviously don´t fit together. First step, Use css styling instead of menu styles.
Look at http://www.milonic.com/cssbasedmenus.php
M.
Sincerely I find that bug in the Javascript for the IE is one only, therefore in the Firefox, Netscape and Mozilla the functioning is perfect…
I am distrustful that he is one bug of the menu when used together Overscroll and menuheight
Poster: casca
Dated: Thursday August 10 2006 - 19:04:45 BST
Same problem.
Well now in the last version 5.753 .
In link below it has the page test that comes in the package:
http://casca.fortunecity.co.uk/
It rolls the screen until the menu to be in the top of the page, thus the difference is noticed
Look the alternative "links/anti span tool". I place in submenu the same itens of the samples menu, but with parameter "menuheight = 250;".
For what I understand submenus must appear below of the parents when nothing is specified, but is not this that occurs. The behavior of the positioning is different in the IE and the FF.
In my case the IE shows submenu above of the parent in a first instant, but in one second passed with the cursor it is correct. Already the FF always shows above of the father.
what has wrong?
Poster: Ruth
Dated: Friday August 11 2006 - 3:57:17 BST
Hi,
In a horizontal menu, the submenus will be below the parent unless you have specified an offset or if it is longer than the screen and you do not have overflow=scroll set and there is room for it to move up.
But in a vertical menu the menu does NOT go below the parent it goes to the side and is set based on the left and top submenuoffset code at the top of the menu data file
subOffsetLeft=; and subOffsetTop= are used to position a vertical submenu that opens from a vertical main menu.
Ruth
Poster: casca
Dated: Friday August 11 2006 - 14:08:44 BST
Ruth wrote:
Hi,
In a horizontal menu, the submenus will be below the parent unless you have specified an offset or if it is longer than the screen and you do not have overflow=scroll set and there is room for it to move up.
But in a vertical menu the menu does NOT go below the parent it goes to the side and is set based on the left and top submenuoffset code at the top of the menu data file
subOffsetLeft=; and subOffsetTop= are used to position a vertical submenu that opens from a vertical main menu.
Ruth
In a horizontal menu, the submenus will be below the parent unless you have specified an offset or if it is longer than the screen and you do not have overflow=scroll set and there is room for it to move up.
But in a vertical menu the menu does NOT go below the parent it goes to the side and is set based on the left and top submenuoffset code at the top of the menu data file
subOffsetLeft=; and subOffsetTop= are used to position a vertical submenu that opens from a vertical main menu.
Ruth
OK, but in my case?
You see my example page? Rolled the page it menu to remain in the top? The behavior is strange, because it has sufficiently space for submenu to be mounted correctly below of the parent.
Poster: Ruth
Dated: Friday August 11 2006 - 21:33:44 BST
Hi,
The problem seems to be setting the menuheight with overflow="scroll"; when the submenu is opening from a vertical menu. As you see in the Samples submenu it works fine, but it's opening from a horizontal menu. For now remove the menuheight and it will open correctly.
I've reported the issue.
Ruth
Poster: Ruth
Dated: Saturday August 12 2006 - 4:49:15 BST
Hi,
I just thought of something else that you can do as a sort of 'work around' It is not perfect and I would really need to know how many items you have in that menu. It doesn't work as it should with the Menu Samples menu because there are so many items in it, however I did get it to work more or less with a submenu with 24 items.
It is not perfect. It still opens up on the page, but it opens in such a way as to look OK, and on the second mouseover it aligns pretty good.
Add this to the top part of the menu data file.
Code:
var sub1TopOffset=203;
var sub1LeftOffset=3;
var sub1LeftOffset=3;
It goes right below the _subOffsetLeft=2;
Then copy and paste this as your Anti Spam menu. There are 27 items in it. If you make it only 24 items it works even better.
Code:
with(milonic=new menuname("Anti Spam")){
top="offset=" + sub1TopOffset;
left="offset=" + sub1LeftOffset;
style=menuStyle;
overflow="scroll";
menuheight=250;
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
}
top="offset=" + sub1TopOffset;
left="offset=" + sub1LeftOffset;
style=menuStyle;
overflow="scroll";
menuheight=250;
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
}
What will happen is that it opens towards the top but not right at the top. It's still reading the space needed for the whole menu with the overflow="scroll"; and not getting to the menuheight part until after it renders the first time, but it is down from the top a good ways and kind of looks as if the bottom of that submenu is trying to match up with the bottom of the one that opened it. On the second mouseover the top will be just about even with the top of the submenu in which the link to open it is.
It is only a workaround while Milonic sees if there is anything that can be done to get it to open just as if it were a regular submenu with no overflow="scroll"; in it. I thought it might help if you need the menu up right away.
Those variables were set up so that people who needed to have a different offset for a set of 1st level submenus than the offset coded in the menu data file could do that.
Ruth