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:37

little position bug on first appearance


Poster: ybouc
Dated: Saturday March 20 2004 - 4:20:28 GMT

Hi everyone, me again ! :-D

Been installing the menu on a new site, and once again, i'm using only images. Anyways, there seems to be a bug with the relative positioning : whenever i open a sub-menu for the first time, it doesn't appear in the correct position. However, as soon as it closes, any time i would open it again will be fine...

Also, as far as i know, i'm using the latest version of the code.

take a look here :
http://www.talieoh.com/bio/bio.html

BTW, this one is a soft-core adult site, so i'm just giving you a heads-up.. :-D

thanks in advance for your help !

Yannick

Re: little position bug on first appearance


Poster: John
Dated: Sunday March 21 2004 - 3:30:23 GMT

ybouc wrote:
Also, as far as i know, i'm using the latest version of the code.

Actually 5.07 is current (you're running 5.04), with 5.08 lurking in the shadows but slightly misplaced. Try one of those and then we'll look again.


Poster: Ruth
Dated: Sunday March 21 2004 - 4:03:56 GMT

One thing I noticed when trying to play with it, you are using left="offset=number"; in the submenus, wouldn't you be using the _subOffsetTop=10 or whatever before you declare your style in the submenus?
Code:
with(milonic=new menuname("whatever submeu")){_subOffsetTop=10;style=menuStyle;
I'm not 100% on that but I swear I saw someplace about putting the subOffsets right there.

Ruth


Poster: John
Dated: Sunday March 21 2004 - 16:39:38 GMT

Correction to the above, Yannick - we're now at 5.09...

Re: little position bug on first appearance


Poster: kevin3442
Dated: Wednesday March 24 2004 - 0:50:42 GMT

Hi Yannick,

I just checked the site (thoroughly ;) ) and I don't see the problem. I tried IE6/NS7.1/Win2k. Have you fixed the problem then? If not, what browser/OS are you seeing the problem in?

Nice site design by the way... clever combination of images and offsets in your submenus to get that button-over-menu look.

Kevin


Poster: ybouc
Dated: Wednesday March 24 2004 - 12:04:50 GMT

thanks for the compliment, Kevin !

You have no idea how much work it is though... cos i cannot really use transparency because of that outer glow, so i have to _cut every button on every page to match the different backgrounds_ ... :-| ... anyways !

so i updated the code to the latest version (just did about 5 minutes ago), and i do see the problem still. It happens only on the very first time that you open a menu... afterwards, it's perfectly fine.

anyways, i took a screenshot of it, for your reference :

http://www.talieoh.com/menu_offset.gif

so that's about it...

thanks,


Yannick


Poster: kevin3442
Dated: Wednesday March 24 2004 - 17:32:06 GMT

Hi Yannick,
ybouc wrote:
...so i have to cut every button on every page to match the different backgrounds ... :-|

Yeah... I've had to do that before for a DemoShield installation front end. Definitely a pain. I hope you're charging by the hour!

So... I'm still not seeing it in IE6/Win2k. What are you using?

Kevin


Poster: ybouc
Dated: Wednesday March 24 2004 - 17:39:42 GMT

in IE6/XP i still have it....

and no, not charging by the hour... :-(... but we'll be getting a cut from the profits as well, so we'll hopefully be even... ;-)


Poster: John
Dated: Wednesday March 24 2004 - 19:54:44 GMT

OK, I see it - XP Pro/IE6 - just like your image, and, as you say, only the first menu hit on a page. Following hits are lined up perfectly. As yet, however, I don't have a fix.


Poster: John
Dated: Wednesday March 24 2004 - 20:18:30 GMT

Jeez, I hate stuff like this.

I took your site and put it up on one of my servers at http://www.west.asu.edu/sa/testsite/to/. Changed nothing (although a few things need tweaking) and tested. Everything worked perfectly first time. It's the same machine that I get the failure on at your site!

OK, the only difference is I was using my local copies of the menu code (but still your downloaded _data file).

Changed over to using your menu code and my local _data file. Still OK.

Changed over to using your copy of the _data file and it fails as before!

Right now the URL above is set to use your code files and my local copy of the _data file. Let me know what you see (and please don't ask what's going on!)...


Poster: kevin3442
Dated: Wednesday March 24 2004 - 21:53:45 GMT

two more cents...

I do not get the odd behavior in IE6/Win2k on either the original site or John's test site. However, I do get the odd behavior in NS7.1/Win2k at both sites... only on first mouseover, as described. Even odder... if I refresh, I don't get the problem again. I only see it on the first mouseover after I have opened the browser.

I notice a few errors in your menu_data.js file.

(1) There are several occurences of ;; in your aI() strings. Change these to ; (a single semicolon).

(2) There are three occurrences of ;;; in your aI() strings. Change them to ;

(3) The aI() string should always end with a ; before the closing "... like so:
Code:
aI("text=Item Text;url=whatever.htm;....;propname=propvalue;");

(4) There is no menu style property called spacing, but you have spacing="0" in your menuStyle. I'd get rid of it.

(5) Change padding="0" to padding=0 in your menuStyle

(6) Change separatorsize="0" to separatorsize=0 in your menuStyle

(7) Since you have separatorsize=0 in your menuStyle, there's no need to define it in each aI() item... I'd take that out of each aI().

Let's see if any of those help.

Kevin


Poster: John
Dated: Wednesday March 24 2004 - 22:10:08 GMT

kevin3442 wrote:
I notice a few errors in your menu_data.js file.

Those were my "although a few things need tweaking" items... :D


Poster: John
Dated: Wednesday March 24 2004 - 23:14:53 GMT

Forgot - there are also some unclosed tags in your HTML.


Poster: ybouc
Dated: Thursday March 25 2004 - 4:11:48 GMT

oh geez... :-D

ok, so we are we at now ? :-D i clicked on your url for your test site and got nothing (404)...

so what should i do ? I'll tweak those things, but do you think that will change anything ?


Poster: John
Dated: Thursday March 25 2004 - 14:11:19 GMT

Thought you had already been there, so I took it down before I left last night.

OK, just put it all back (minus the text). URL and conditions the same as before - calls to your menu code but using my copy of your _data file. Please let me know when you've looked at it. Regardless it will have to come down before I leave tonight (1630 - GMT-0700).

Not sure if the tweaking will fix anything, but it is all still wrong and needs to be corrected.