On Feb 9, 2:49 pm, Eric <[email protected]> wrote:
> Hi,
>
> I apologize if my question is stupid (and it should be since I cannot
> find any reference to this idea anywhere) but I was wandering if it
> would be possible to use an effect on a CSS style definition instead
> of a DOM object.
The people who have answered seem to have ignored your question, and
told you what they think you should do instead.
I think your suggestion is an interesting one: I don't see why it
shouldn't work, but when I've looked at manipulating the stylesheet
from JS, it looked rather tricky to me (and different on IE). I don't
know of any attempts to automate it in a library, or use it for
dynamic effects. Whether it would actually perform any better than
changing the class I don't know: it depends on how Browsers behave
when you change styles in their stylesheet.
See http://www.javascriptkit.com/dhtmltutors/externalcss.shtml for
some information on doing it.
Colin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---