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
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
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
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
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