little position bug on first appearance

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ybouc
Advanced
Advanced
Posts: 26
Joined: Thu Oct 16, 2003 8:34 pm
Location: Montreal, QC Canada
Contact:

little position bug on first appearance

Post by ybouc »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: little position bug on first appearance

Post by John »

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.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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: Select all

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Correction to the above, Yannick - we're now at 5.09...
John
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: little position bug on first appearance

Post by kevin3442 »

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
ybouc
Advanced
Advanced
Posts: 26
Joined: Thu Oct 16, 2003 8:34 pm
Location: Montreal, QC Canada
Contact:

Post by ybouc »

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
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
ybouc
Advanced
Advanced
Posts: 26
Joined: Thu Oct 16, 2003 8:34 pm
Location: Montreal, QC Canada
Contact:

Post by ybouc »

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... ;-)
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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!)...
John
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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: Select all

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

kevin3442 wrote:I notice a few errors in your menu_data.js file.
Those were my "although a few things need tweaking" items... :D
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Forgot - there are also some unclosed tags in your HTML.
John
ybouc
Advanced
Advanced
Posts: 26
Joined: Thu Oct 16, 2003 8:34 pm
Location: Montreal, QC Canada
Contact:

Post by ybouc »

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 ?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
Post Reply