Return to Snippet

Revision: 11152
at January 26, 2009 13:37 by rwczippy


Initial Code
<html><head><title>Style Switcher</title>
<script>
var StyleFile = "style" + document.cookie.charAt(6) + ".css";
document.writeln('<link rel="stylesheet" type="text/css" href="' + StyleFile + '">');
</script>
</head><body><h2>Live in Style</h2><br>
<a href="javascript: document.cookie='style='; window.location.reload();">Style 1</a> |
<a href="javascript: document.cookie='style=2'; window.location.reload();">Style 2</a> |
<a href="javascript: document.cookie='style=3'; window.location.reload();">Style 3</a>
</body></html>

Initial URL
http://www.centerkey.com/style/switcher/

Initial Description
NICE!

Initial Title
Simple Tutorial to Swap CSS Files for HTML Web Pages

Initial Tags
css, javascript, html, style

Initial Language
HTML