Re: [jQuery] Creating stylesheets in jQuery

2007-02-27 Thread Danny Wachsstock
For those who like the idea of manipulating stylesheet styles, I added some hacks that let you animate styles (even using Interface.js) and use .css(property) to retrieve the property for that style. So $.style('td').animate({width : 100, color: 'green'}, 'slow') changes all TD elements (using In

Re: [jQuery] Creating stylesheets in jQuery

2007-02-27 Thread Yansky
Woops, my bad. I forgot to check it in IE. Danny Wachsstock wrote: > > That works for Firefox, which treats the cssText as a textNode but fails > in Internet Explorer. > > > Yansky wrote: >> >> You could also do $("style").html("p{color:green;}"); if you wanted a >> non-inline style rule app

Re: [jQuery] Creating stylesheets in jQuery

2007-02-27 Thread Danny Wachsstock
That works for Firefox, which treats the cssText as a textNode but fails in Internet Explorer. Yansky wrote: > > You could also do $("style").html("p{color:green;}"); if you wanted a > non-inline style rule applied to the page. > > > Danny Wachsstock wrote: >> >> This may be helpful to someo

Re: [jQuery] Creating stylesheets in jQuery

2007-02-27 Thread Yansky
You could also do $("style").html("p{color:green;}"); if you wanted a non-inline style rule applied to the page. Danny Wachsstock wrote: > > This may be helpful to someone: I made a jQuery extension that lets you > change the stylesheet styles, rather than the inline styles (which is what > jQu

[jQuery] Creating stylesheets in jQuery

2007-02-26 Thread Danny Wachsstock
This may be helpful to someone: I made a jQuery extension that lets you change the stylesheet styles, rather than the inline styles (which is what jQuery generally does). So you can do: $.style('p').css('color','green'); creates a stylesheet with a rule that sets the color of P elements, includi