Description
Allows users to switch between stylesheets and stores their preference.
Browser support
| Internet Explorer 4+ | Script works as expected |
|---|---|
| Opera 7+ | Script works as expected |
| Gecko engine browsers (Mozilla, Firefox, Netscape 6+, etc) | Script works as expected |
| KHTML/WebKit (Konqueror, Safari, OmniWeb 4.5+, iCab 4+) | Script works as expected with <link> tags but is known to have problems with <style> tags |
| iCab 3- | Script works works as expected with <link> tags in iCab 3+, but is known to have problems with <style> tags (a few styles from the preferred stylesheet cannot be disabled) |
| Rhino + W3C DOM (ICEbrowser) | Main stylesheet can be switched off but alternative stylesheets cannot be switched on |
| Rhino + layers/W3C DOM (Escape/Evo, iBrow) | Stylesheets cannot be switched |
| NetFront 3+ | Stylesheets cannot be switched |
| Opera 5 and 6 | Stylesheets cannot be switched |
| Netscape 4 | Stylesheets cannot be switched |
| OmniWeb 4.2- | Stylesheets cannot be switched |
| Rhino + pDOM (Clue browser) | Stylesheets cannot be switched |
| WebTV | Stylesheets cannot be switched |
| Tkhtml Hv3+ | Stylesheets cannot be switched |
| Netgem NetBox | Not tested but might work |
| OpenTV | Not tested but might work |
| iPanel MicroBrowser | Not tested but will probably not work |
Accessibility notes
No inherent accessibility problems; Ensure the default stylesheet and the plain HTML are accessible.
License
Please see my terms and conditions page for terms and conditions of use.
Download
Demonstration/instructions
View syntax highlighted source