Leon Chevalier a écrit :
> Unfortunately it doesn't take effect fast enough for IE, even using
> DOMContentLoaded, producing a small flicker as the div loads, hides, then
> fades in again. 

OK, out of my hat again, how about this:

- In your <head>, use a small inline script that writes a <link> on a
CSS defining a display: none class, used by your elements.  Without JS,
you'll end up with elements using an undefined class, thereby being
visible from the start.

- On DOMContentLoad (or even regular load), update all those elements
with inline "display:none" through their style property, then use DOM
Level 2 Style to alter the CSS definition to remove the class-level
"display: none" (thereby allowing hide(), show(), etc. to work properly).

I'm not 100% sure the latter CSS manipulation is feasible, but I believe
it is.  Of course, this is kinda convoluted :-/

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to