And if so, when.
If not...why not?

Code: Select all
.opaque {
opacity: .5;
filter: alpha(opacity=50);
-moz-opacity: .5;
}
I understand, but why is only filter:alpha(opacity=xx); supported in the menu style, and not the mozilla equivalent?Ruth wrote:You can set opacity by creating a class in the style sheet, i.e.
the first is I believe for Safari, the second is ie and the last is of course mozilla.Code: Select all
.opaque { opacity: .5; filter: alpha(opacity=50); -moz-opacity: .5; }
alpha(opacity) is proprietary to IE, moz-opacity is a take off on that and proprietary to mozilla. Of course, you have to apply the class to something, say the background-color, or an image. Hope that helps
Ruth
I think Andy is doing a fantastic job of supporting as many browsers as he does, but it's virtually impossible to cover them all. There are too many browsers, too many still in beta, and too many that have decided on their own versions of the standards. Given that, my guess is IE was chosen because it is the most widely used browser.Swetsenegger wrote:I understand, but why is only filter:alpha(opacity=xx); supported in the menu style, and not the mozilla equivalent?
I do understand all that, and believe me I'm very happy with a menu like this free for personal use!John wrote:I think Andy is doing a fantastic job of supporting as many browsers as he does, but it's virtually impossible to cover them all. There are too many browsers, too many still in beta, and too many that have decided on their own versions of the standards. Given that, my guess is IE was chosen because it is the most widely used browser.Swetsenegger wrote:I understand, but why is only filter:alpha(opacity=xx); supported in the menu style, and not the mozilla equivalent?
Code: Select all
.opaque {
opacity: .5;
-moz-opacity: .5;
}
Code: Select all
offclass="opaque";
onclass="opaque";
Ruth wrote:Actually, the menu does allow you to apply the moz-opacity, and also opacity to cover the safari. It's applied through off/on class. You will have to check it and make sure you have the look you want in the final result. . I did check the on/off class for it and it and it does work but details are up to you.
Put the opacity class, whatever you want to name it in the head of the document, or I guess it would work in an external style sheet. i.e.Then in the menu_data.js file in the global style definitions putCode: Select all
.opaque { opacity: .5; -moz-opacity: .5; }
That will apply opacity to the menu. [whichever section uses the particular style definition in which you put that on/off class]Code: Select all
offclass="opaque"; onclass="opaque";
opacity and -moz-opacity code from 0-1 in fractions, i.e. .1, .2, .3 etc. So, .5 is equal to 50%. Also note, I took out the alpha, that is applied through the filters in the overfilters code.
As to adding it to the menu, I'm not really sure about in depth things but I know that each little minor change requires changing a lot of things when programming. Sort of like a sentence structure if I can make an analogy with all the programmers reading thisIf the sentence says, "I understand now just how important my old car was to me." and you change I to he, well guess what, you have a LOT of changing to do in the sentence.
Ruth
Code: Select all
<IMG style="-moz-opacity:0.5" src="test.gif">
Ruth wrote:Pushy, pushyOk, that can be applied to images like so
However, I have no clue how you would apply that to the background image of the menu. There may be another way to do it, but only if I can see what you want, so do you have a test page with the stuff up so I can mess around? And, do you have ie so you could set the overfilter alpha to what you want, set up a test page and give me the link so I can see it and get the data?Code: Select all
<IMG style="-moz-opacity:0.5" src="test.gif">
Ruth
OK, that's clear.kevin3442 wrote: However, applying an opacity setting in an alpha() filter, as used in the overfilter or outfilter milonic properties, will only work in IE5.5+ (on Windows), because these filters rely on DirectX technology to render their effect (DirectX being a Microsoft technology).
Cheers,
Kevin
Hi Andy,Andy wrote:Hi,
I thought I'd dig the code out from the vault that I was working on years ago.
The reason I stopped developing this was because it seemed a little too slow on the lesser browsers and on lesser machines.
This post revitalized the quest so I've built the old code in to the new menu and it seems to be OK. There is a beta at http://milonic.com/betas/menu.htm It's still quite buggy but it's getting there.
Let me know what you think.
Cheers
Andy
Ok, but this will solve it for at least the number 2 browsers; Mozilla, Firefox and Netscape.Andy wrote:I wish it could be included. THe problem is the lack of support for opacity in Konquerer and Opera.It would be great if this could be implemented in a future release!
However, opacity is a standard property in CSS3. As these browsers start to support CSS3 it should be possible.
Cheers
Andy