Transparency in V5

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Transparency in V5

Post by fredlongworthhighschool »

I am looking into moving from V3 to V5 - lot of work ahead in converting!

But I can't seem to see an option to set the transparency of the drop down menus. Is it staring me in the face or not yet implemented? I'm also not sure in which file it is.

Am I also right in thinking that 3 files:

iframe_data.js
milonic_src.js
mmenudom.js

must be present to work. I know the iframe_data one contains your menus, but what are the others for and are they edited in any way?

Thanks
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

See the OVERFILTER option of a menu described in this post below. Look at the alpha and shadow options that are used as examples.

http://www.milonic.co.uk/menu/forum/vie ... php?t=2014
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

I see. But in which file is the line added and where, and does it activate itself or must you make the call somewhere in your array.js file?
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

Figured it out. I was putting

Code: Select all

overfilter = "Alpha(style=0,opacity=70);Shadow(color='#666666', Direction=135, Strength=4)";
in the script too early and it was only making the main title transparent. I put this line directly into the settings of my sub-menu and it worked perfectly.

I thought you would have put the line somewhere at the start of the script and then just make a call to it?
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

No, as far as I can tell, you have to specify the overfilter on any menu you want it to affect. I tried making the filter a part of a style and applying that style to a menu, but to no success. Each menu has to have the overfilter attribute set.

But you CAN do this at the beginning of the file...

Code: Select all

myfilter = "Alpha(style=0,opacity=90);Shadow(color='#666666', Direction=135, Strength=4)";

////  and then below in your menu creation you say...  ///

...
overfilter = myfilter;
...  
That worked for me!
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

Excellent. Thanks again.
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
Post Reply