1. Add all the alternative stylesheets to the head section of your page. Example (from what you posted):
Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<link type="text/css" rel="stylesheet" title="Gold (right, fixed) + navbar" href="../threepart-f.css">
<link type="text/css" rel="alternate stylesheet" title="Oldstyle" href="http://www.w3.org/StyleSheets/Core/Oldstyle">
<link type="text/css" rel="alternate stylesheet" title="Modernist" href="http://www.w3.org/StyleSheets/Core/Modernist">
<link type="text/css" rel="alternate stylesheet" title="Steely" href="http://www.w3.org/StyleSheets/Core/Steely">
<link type="text/css" rel="alternate stylesheet" title="Forest (by David Baron)" href="http://dbaron.org/style/forest">
<link type="text/css" rel="alternate stylesheet" title="Plain (by David Baron)" href="http://dbaron.org/style/plain">
</head>
You will of course link to your own .css files and give them your own titles.
2. Download the .js file from the page I gave you before and add a link to it in the head section:
Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<link type="text/css" rel="stylesheet" title="Gold (right, fixed) + navbar" href="../threepart-f.css">
<link type="text/css" rel="alternate stylesheet" title="Oldstyle" href="http://www.w3.org/StyleSheets/Core/Oldstyle">
<link type="text/css" rel="alternate stylesheet" title="Modernist" href="http://www.w3.org/StyleSheets/Core/Modernist">
<link type="text/css" rel="alternate stylesheet" title="Steely" href="http://www.w3.org/StyleSheets/Core/Steely">
<link type="text/css" rel="alternate stylesheet" title="Forest (by David Baron)" href="http://dbaron.org/style/forest">
<link type="text/css" rel="alternate stylesheet" title="Plain (by David Baron)" href="http://dbaron.org/style/plain">
<script type="text/javascript" src="/scripts/styleswitcher.js"></script>
</head>
3. Add anchor tags (links) to you body section to change between the styles:
HTML Code:
<a href="#"
onclick="setActiveStyleSheet('Oldstyle');
return false;">change style to Oldstyle</a>
<a href="#"
onclick="setActiveStyleSheet('Modernist');
return false;">change style to Modernist</a>
<a href="#"
onclick="setActiveStyleSheet('Steely');
return false;">change style to Steely</a>
etc...
Good luck!
Bookmarks