Thanks! That looks to be just the solution I'm looking for.

On Nov 27, 1:10 pm, seasoup <[EMAIL PROTECTED]> wrote:
> ok, found a plugin for you:
>
> http://flesler.webs.com/jQuery.Rule/
>
> On Nov 26, 4:40 pm, Craig <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi, does anyone know if it's possible to extract a style attribute
> > from a style (and not an element)?
> > For instance:
> > <style>
> > .myclass { background-color:white; }
> > </style>
>
> > I have some legacy javascript that takes colors as parameters to
> > functions and i'd like to be able to define those in a style sheet and
> > then 'extract' the colors from that.
>
> > I can only get it to work if I do something like this:
> > <div class="myclass" />
> > ...
> > var color = $(".myclass").css("background-color");
>
> > any ideas?
> > Craig.- Hide quoted text -
>
> - Show quoted text -

Reply via email to