I have been trying to detect ,using javascript , the css display
property
(set via an external @import style sheet) of an element
Example
page: http://www.jimthatcher.com/site_resources.htm has a LI
(class="skip"
with CSS display:none.
but when i try to find this via the (IE DOM) i cannot locate it.
I've written a script that I've used many times. Seems to work well
enough (Win IE5+, Mozilla/Firefox, Mac Safari 1.3), although the format
of the returned values varies a bit (e.g., Safari outputs colors as
rgba(), Mozilla outputs what you've typed, IE and Opera expand it out).
Safari before 1.3 was unable to do this.
Here's my test page with the script embedded.
http://www.bivia.com/sandbox/bv_lib_tests/find_current_style.html
One problem you'll have (I just tested this) is that Safari seems to
dislike getting the style of display:none. I haven't looked into this
further.
--
Ben Curtis : webwright
bivia : a personal web studio
http://www.bivia.com
v: (818) 507-6613
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************