drop shadow creeps down the screen ?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Russell Conder
Beginner
Beginner
Posts: 8
Joined: Tue Aug 19, 2003 1:54 am

drop shadow creeps down the screen ?

Post by Russell Conder »

:!: Hi guys. Here's an odd problem. The menu is sometimes perfect, and at other times the shadow beneath the menu starts creeping down the screen.
Here are some screenshots: http://www.waiheke.co.nz/menu1.htm.
Weird huh ?
Any advice would be greatly appreciated.
The menu coding is awesome. Just found it.
best regards
Russell :|
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

We've said this before, alot, but do you have a URL we could see the menu in action? It makes it a whole lot easier to see what you are talking about and find the problem down to the line in your code.

But as I always try to do, lets see if we can nail this without seeing it; a shot in the dark if you will. ;) The think the problem lies in your style (more specfically you're overfilter and outfilter). When you declare the shadow filter, you have to specify its strength and size, a guy here once set it too high and it cause some crazy things. Make sure the strength and size are no more than 1 or 2. See if that clears it up.

U..R..L......U..R..L......U..R..L...... ;)
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Russell Conder
Beginner
Beginner
Posts: 8
Joined: Tue Aug 19, 2003 1:54 am

Post by Russell Conder »

Sorry Dave.
The URL is http://www.waiheke.co.nz/prop.shop/home.php
a draft
thanks!!
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Couple things I noticed, lets see if anything of them are the culprit... 8)

First in your first style (menuStyle):
There is no 'status' attribute for styles, those must be defined in the menuItem individually..so take this out. There is also no topbarimage property of a style. Now this style is only used by the top menu which is always visible, so your over and out filters are a problem since there is no transitions. So make outfilter = "" and take the Fade filter out of your overfilter. Its ok to leave the alpha and shadow (I think) because they will stay with the menu at all times.

Secondly in your first main menu (Menu):
you specify a top and left pixel position AND screenposition. These contradict each other. I tried it on my machine and the top/left seem to override the screen position, but I think it would be a good idea to remove this just in case.

Thats about what I can see at the moment. Your shadow filter seems fine at a strength of 3. I actually have my own set to 4, so I see nothing there. Try changing these things and hopefully it will work.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Russell Conder
Beginner
Beginner
Posts: 8
Joined: Tue Aug 19, 2003 1:54 am

Post by Russell Conder »

Dave, I do believe your trained and professional eye got it ! Thanks a lot. That'll teach me to do things at 4 in the morning :) Thanks
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Glad we nipped it in the bud! :D Some of my best work is done at 4am, well, not really. :lol:
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Russell Conder
Beginner
Beginner
Posts: 8
Joined: Tue Aug 19, 2003 1:54 am

Post by Russell Conder »

one question though -- I'd like to bring the fade back. It's a great feature. Does that mean finding an image ? It's now 5.47 in the am, couldn't sleep, wotthehell, might as well do some work :-))
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Why do you want to keep the fade on the top most menu? It only will fade in once (at load time) and stay that way. Try putting it back in and see if that specifically was the problem, if it still works, then by all means leave it in there.

BTW, you can still leave the fade in the filters you have in the style2 (which you use on the submenus) so they still fade in and out. That filter on the submenus wouldnt have been causing the problem you were seeing on the topmost menu, as far as I can see.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Russell Conder
Beginner
Beginner
Posts: 8
Joined: Tue Aug 19, 2003 1:54 am

Post by Russell Conder »

Yes thanks dave -- I've experimented with putting the fade back in the 2nd tier menus and it's as happy as a .... thanks again for the help.
Post Reply