|
There is no reason why you can't use CSS directly,
without using a label, a label just makes it easy to format your text cross
browser.
NS4 support does not suffer from using CSS directly, it just doesn't look as good, but
simply ignores what it can't render.
You can do something like this:
myLayer.css.filter =
'alpha(opacity=40)';
This would make a layer nicely transparent in IE5,
NS4 would ignore it. But if you want NS6 to do the same, you have to do
this:
myLayer.css.MozOpacity
= '40%'
So there go your standards!
You can't only support NS6 and
Mozilla.
On the other hand you are right that DynAPI should
follow the w3c standards as close as possible, but it should offer degrading for
older browsers. A work in progress I guess.
(These examples are taken from Ruairi's excellent
transparency widget)
Cheers,
Richard Bennett [EMAIL PROTECTED]
www.richardinfo.com (Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2) Find the DynAPI faq here: http://sourceforge.net/docman/display_doc.php?docid=656&group_id=5757 Browse the mailinglist here: http://www.mail-archive.com/index.php3?hunt=dynapi
|
- [Dynapi-Dev] Suggestions for the DynAPI - Part 2 JonathanErinDale
- Re: [Dynapi-Dev] Suggestions for the DynAPI - Part ... Richard Bennett
- Re: [Dynapi-Dev] Suggestions for the DynAPI - Part ... .:: OCB ::.
- Re: [Dynapi-Dev] Suggestions for the DynAPI - Part ... JonathanErinDale
- RE: [Dynapi-Dev] Suggestions for the DynAPI - P... Pascal Bestebroer
