Transparency and version 4

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
danone
Beginner
Beginner
Posts: 5
Joined: Wed Jul 02, 2003 5:41 pm
Contact:

Transparency and version 4

Post by danone »

i know this might have come up in an earlier topic but is there an easy way (like in version 3) to set the transparency of the drop down menus?

--daniel--
zotsf
Advanced
Advanced
Posts: 17
Joined: Wed Jun 11, 2003 11:43 pm

Post by zotsf »

onbgcolor="transparent";
offbgcolor="transparent";
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

If you are referring to having slightly transparent menus then do the following.
In your menu declaration put the line:

Code: Select all

overfilter="Alpha(style=0,opacity=75);Shadow(color='#666666', Direction=135, Strength=4)";
As you can see here, I set the opacity to 75% and also threw in a shadow to show you how to apply more than one filter at a time.
On a similar note, there is also a way to have it perform some sort of filter when you mouseout of a menu...

Code: Select all

outfilter="randomdissolve(duration=0.2);Shadow(color='#777777', Direction=135, Strength=5)";
If you just wanted the background to be totally gone, then zotsf hit the nail on the head. Otherwise, this is a way to do it too.
Last edited by Hergio on Wed Aug 06, 2003 2:00 pm, edited 2 times in total.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
danone
Beginner
Beginner
Posts: 5
Joined: Wed Jul 02, 2003 5:41 pm
Contact:

Post by danone »

nice! perfect! works great! thanks a million yo!

--daniel--
toasterhead2k
Advanced
Advanced
Posts: 12
Joined: Fri Jun 27, 2003 9:05 pm
Location: Washington, DC
Contact:

Post by toasterhead2k »

Does the overfilter attribute have to be set for each menu individually, or can it be applied to the style so it'll cascade to all menus using that style? It might get a little tedious adding this to every single menu and sub-menu...

Edit: I tried adding the overfilter line in different places in the menu array, and it only worked in the menu declaration. Ah, well... Nothing a few ctrl-v's can't fix!
danone
Beginner
Beginner
Posts: 5
Joined: Wed Jul 02, 2003 5:41 pm
Contact:

Post by danone »

Can i get the transparency effect to work on any Mac Browser? Seems to only work on PC browsers...is there a fix for this?
Post Reply