You could try looping through the document.styleSheets collection and
testing the disabled attribute:
var styleSheetsDisabled = false;
for (var i = 0; i < document.styleSheets.length; i++) {
if (document.styleSheets.item(i).disabled) {
styleSheetsDisabled = true;
}
}
Not sure if this would work as you expect - for more info, try
http://dorward.me.uk/software/disablecss/
on 04/09/2009 00:50 mumbojumbo said::
Hello All,
I'm trying to code a site using progressive enhancement methods. It's
built upon standards-compliant CSS and HTML and JS. I'm using jQuery
on the site to animate some elements on hover etc. Now, when CSS and
JS is disabled, it's all good. But, If CSS is disabled and JS is still
enabled, the js still manipulates the elements and it's not what I
want. I was wondering if anybody knew anything about this. I can't
seem to find anything about this...