On 5/25/06, Gregory Hill <[EMAIL PROTECTED]> wrote:
JS cannot access the attributes if they were
set using a <style> block or an external stylesheet.

You can. See Element.getStyle()

The problem with making an element visible, when it was hidden by
setting display: none in a stylesheet is, that calculating the proper
value for the display property is rather complicated and time
consuming.

You would have to find the applicable style definitions for an
element, sort them by specifity, go backwards through them until you
get to a state where the effective display value is not "none".

You would would need something like Dean Edward's CSS parser as used
in his IE7 script.

Martin
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to