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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:16

No shadow on main menu ?


Poster: HeReDaGo
Dated: Saturday November 30 2002 - 20:55:57 GMT

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/viewtopic.php?t=990&highlight=shadow ) but I still don't understand.

Thx for helping a little newb like me!

HeReDaGo


Poster: kevin3442
Dated: Tuesday December 3 2002 - 5:51:03 GMT

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


Poster: HeReDaGo
Dated: Wednesday December 4 2002 - 4:08:00 GMT

thx a lot !!!

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

HeReDaGo

shadow


Poster: tony
Dated: Friday January 24 2003 - 21:55:07 GMT

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


Poster: kevin3442
Dated: Saturday January 25 2003 - 1:03:14 GMT

Hi Tony,

Assuming that
Code:
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


Poster: tony
Dated: Saturday January 25 2003 - 13:07:13 GMT

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


Tony