No shadow on main menu ?

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
HeReDaGo
Beginner
Beginner
Posts: 2
Joined: Sat Nov 30, 2002 9:20 pm

No shadow on main menu ?

Post by HeReDaGo »

Hi, I am running v. 3.3.19 on my site HERE and there is shadow on the main menu and sub-menus but I'm trying to setup v. 3.5.10 (see HERE)and the is shadow on sub-menus but NOT on the main menu.


NOTE: I already gave a shot at this topic ( http://www.milonic.co.uk/menu/forum/vie ... ght=shadow ) but I still don't understand.

Thx for helping a little newb like me!

HeReDaGo
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,

At the top of your menu_array.js files, you'll see that there is a filter effect defined in a string variable called "effect".

Code: Select all

effect = Fade(duration=0.2).... etc.
You can define as many different effect strings as you want, each in a different string variable. Whenever you want to apply an effect to a menu, use the effect's variable name as the 10th element in the menu array. You'll notice, for example, that on your 3.3.19 site, the 10th element of the "mainmenu" array is effect; hence, you get the effect defined in the string variable named effect. However, on your 3.5.10 page, the "mainmenu" array's 10th element is blank, so no effect.

A couple of other points: (1) Notice that one of your menu_array.js files tests the IE version, because IE5.5 can only handle one effect, but 6 can combine effects. (2) NS doesn't do effects.

Hope that helps,

Kevin
HeReDaGo
Beginner
Beginner
Posts: 2
Joined: Sat Nov 30, 2002 9:20 pm

Post by HeReDaGo »

thx a lot !!!

it took still ~ 1 hour to understand but whitout your help I would still be stuck!!

HeReDaGo
tony
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Aug 19, 2002 2:34 pm
Location: Derby UK
Contact:

shadow

Post by tony »

Sorry, I don't understand how you did it! I had noticed in my new IE6 there was a soft drop shadow on the popout menus, but not the main menu. I had just thought this was a property of IE, and not something you could set. But then I saw the nice soft shadow on Andy's floating menu on the main milonic page, and wondered how to do it.

I have

effect = "Fade(duration=0.3);Shadow(color='#999999', Direction=135, Strength=5)"

but don't get a soft drop shadow on the main menu, only the parts that come out. I'd be very grateful to know how to do it!

thanks

Tony
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 Tony,

Assuming that

Code: Select all

effect = "Fade(duration=0.3);Shadow(color='#999999', Direction=135, Strength=5)" 
is at the top of your menu array file (often called menu_array.js), then you have an effect defined in a variable called effect. You can apply that effect to any menu, including your main menu, by placing the word

effect

in the 10th element of menu's array.

Hope that helps,

Kevin
tony
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Aug 19, 2002 2:34 pm
Location: Derby UK
Contact:

Post by tony »

Brilliant. Thanks. It's easy when you know how!


Tony
Post Reply