* Klaus Hartl <[EMAIL PROTECTED]> [2006-11-15 12:15]:
> Chris W. Parker schrieb:
> > On Wednesday, November 15, 2006 8:07 AM Alan Gutierrez <> said:
> > 
> >> I'm not finding any methods for editing stylesheets.
> >>
> >> I'd like to change a style as it is defined in the document.
> > 
> > That's probably because there are none. You don't (can't?) modify the
> > .css file directly with js. Instead you modify the styles that have
> > already been applied.
> 
> Not exactly. Support for changing and adding styles to existing 
> stylesheets (DOM Level 2 Style) isn't too good though. I think Opera 
> introduced that with v9. Also there are - again - different routes to go 
> for IE and other modern browsers.
> 
> Here's a chart:
> http://www.webdevout.net/browser_support_dom.php#support-domstyle
> 
> More information: http://www.w3.org/TR/DOM-Level-2-Style/
> 
> I think someone on the list made a plugin for this already...

Klaus

Indeed, the support is sketchy. The code I found will parse the text
content of the style element for some browsers.

I'm still banking on it being faster to change the stylesheet when
you are deailing with hundreds of table cells.

-- 
Alan Gutierrez - 504 717 1428 - [EMAIL PROTECTED] - http://blogometer.com/
                Think New Orleans - http://thinknola.com/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to