Forum Moderators: open

Message Too Old, No Replies

References & Definitions for Filters under Javascript

         

dnimrodx

7:21 pm on Jan 31, 2004 (gmt 0)

10+ Year Member



Hello,

Does anyone know where I can find any (technical) references on how to use/manipulate filters (shadows, opacity, faders, etc) under Javascript? What about the compatibility issues between IE, Netscape (and others . . .)? For what I have seen so far, the way filters work and are accessed differ substantially from browser to browser.

The reason I am posting is that, unfortunately I have not seen any sites making references to this issue with the technic content I need.

Thanks a lot, :)

d#Nimrod

dcrombie

12:13 pm on Feb 1, 2004 (gmt 0)



Filters are IE-only and maybe Windows-only as well. Look for documentation on the M$ site.

dnimrodx

6:54 pm on Feb 1, 2004 (gmt 0)

10+ Year Member



No I don't think filters are for IE only. Netscape uses them as well:

whilst in IE you manipulate it in this way:

object.style.filter = "alpha(opacity=100)";
object.filters.alpha.opacity = 50; // set object's opacity to 50%

in Netscape you would do something like,

object.style.MozOpacity = (50 + '%'); // change object's opacity to 50%
[OR]
object.style.MozOpacity = 0.50; // it works the same way . . .

.
:
.

(for instance, one of my questions has to do with the fact I do not know how to initialize the filter in Netscape)

Therefore I would like to know if someone knows of a site where I can find some information about how filters work in Netscape.

Thanks,

d#Nimrod

dcrombie

10:18 am on Feb 2, 2004 (gmt 0)



I forgot about the -moz extensions as I've never seen any actually in use. The following are all equivalent but all for different browsers:

Explorer:

filter: alpha(opacity=50);

Mozilla (not Netscape?!?):

-moz-opacity: .5;

Safari:

-khtml-opacity: .5;

The Explorer implementation has some limitations in that you have to define a width and height for the transparent object.

The reason I don't use any of them is that they're likely to disappear in the next browser releases and be replaced by whatever standard W3C decide on.

dnimrodx

2:47 pm on Feb 2, 2004 (gmt 0)

10+ Year Member



The reason I don't use any of them is that they're likely to disappear in the next browser releases and be replaced by whatever standard W3C decide on.

I had no idea this was going to happen. Are they going to start developing more standard browsers? Do you know where I can learn more about the next release(s)?

Thanks for the input dcrombie

d#Nimrod

dcrombie

3:11 pm on Feb 2, 2004 (gmt 0)



This is AFAIK:

Netscape is dead - R.I.P.
Explorer is in limbo pending the result of various court cases - incl. the DoJ and E.U.
Mozilla and related browsers (Firebird, Camino, ...) - see mozilla.org/
Opera - see opera.com/
Safari - see weblogs.mozillazine.org/hyatt/

[Edit: Web standards - see w3.org/]

dnimrodx

4:47 pm on Feb 2, 2004 (gmt 0)

10+ Year Member



This is AFAIK:
Netscape is dead - R.I.P.
Explorer is in limbo pending the result of various court cases - incl. the DoJ and E.U.
Mozilla and related browsers (Firebird, Camino, ...) - see mozilla.org/
Opera - see opera.com/
Safari - see weblogs.mozillazine.org/hyatt/

How do you mean Netscape is dead? I have not heard about it before...

And Explorer? I know it is waiting the result of several court cases, but I had no idea it was so serious... :o

Can you develop a bit about it? I would love to know more on the subject... :)