By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

dynamic style-chg not workin in IE..

P: n/a
I'm trying to chg opacity for some divs on a pg, IE is ignoring it..
(works fine in FF..) why is this..

html, css, JS code is here..
http://www.francesdelrio.com/opacity.html

this is for something specific I need to do, have put simplified example
in above url.. (need to do it for relatively-positioned divs AND link
that triggers function is also in its own relatively-positioned div,
this is why example is like this..)

again, this works fine in FF, in IE it's not working at all..

would appreciate suggestions.. thank you very much..

Aug 26 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
*** maya escribió/wrote (Sat, 26 Aug 2006 19:09:17 -0400):
I'm trying to chg opacity for some divs on a pg, IE is ignoring it..
(works fine in FF..) why is this..
alpha(opacity: 40)

Does this work statically? I can't test it now but I believe the correct
syntax was:

alpha(opacity=40)

--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Aug 27 '06 #2

P: n/a
Alvaro G. Vicario wrote:
*** maya escribió/wrote (Sat, 26 Aug 2006 19:09:17 -0400):
>I'm trying to chg opacity for some divs on a pg, IE is ignoring it..
(works fine in FF..) why is this..

alpha(opacity: 40)

Does this work statically? I can't test it now but I believe the correct
syntax was:

alpha(opacity=40)
gracias Alvaro... :)

of course what you point out is the correct syntax, I saw your post and
thought great -- this is solution, but.. it's still not working in
IE... this is so weird.. now I set one div to filter:alpha(opacity=40)
statically, but IE still refuses to cooperate....

http://www.francesdelrio.com/opacity.html

again.. muchas gracias.............

Aug 27 '06 #3

P: n/a
maya wrote:
Alvaro G. Vicario wrote:
>*** maya escribió/wrote (Sat, 26 Aug 2006 19:09:17 -0400):
>>I'm trying to chg opacity for some divs on a pg, IE is ignoring it..
(works fine in FF..) why is this..

alpha(opacity: 40)

Does this work statically? I can't test it now but I believe the correct
syntax was:

alpha(opacity=40)

gracias Alvaro... :)

of course what you point out is the correct syntax, I saw your post and
thought great -- this is solution, but.. it's still not working in
IE... this is so weird.. now I set one div to filter:alpha(opacity=40)
statically, but IE still refuses to cooperate....

http://www.francesdelrio.com/opacity.html

again.. muchas gracias.............
this should have been a question for CSS group, sorry about that... but
I posted here b/c had thought problem was with JS code... however: here
is solution: http://www.quirksmode.org/css/opacity.html

you have to specify either width or height to div you want to apply
opacity filter to.. go figure.....;)

again many thanks..

Aug 27 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.