iA


StyleSheet switcher

Average Reading Time: less than a minute.

“…SO YOU HAVE AN XHTML DOCUMENT. You’ve also been a good little web developer and used style sheets to control what your document looks like. You’ve even gone the extra mile and created several alternative style sheets to show how hardcore you are. Great. But now you need a cross–browser way to dynamically switch between the style sheets…”
Cool. With an open-source javascript file to boot. I’m noticing these more and more on blogs – and being able to switch the presentation layer is nice. Two things I’m interested in – 1) Switching style for accessability reasons – nice big fonts, colour change etc etc. 2) How about a style switch that emphasises different pieces of content based on the type of audience? So I’m an expert, I click the expert button and certain phrases and areas are reinforced with a different colour or presentation style. How cool would that be? Ideas?