Style Sheet Switching
by Tweak on June 12, 2009
in Html/Css, Javascript
By using a little Javascript, you can allow users to switch between different style sheets and dramatically alter the appearance of a web page’s layout.
This first method creates a persistent style sheet. This means that the style sheet will definitely be loaded and enabled for use on this web page. Most style sheets used on the web are loaded in this manner by placing this code in the head area of an HTML document. The properties of the style change when we add a title attribute, like so:
<link rel="stylesheet" type="text/css" href="preferred.css" title="solder" /> Read more…