Return to Snippet

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

Initial Code
<html><head><title>Style Switcher</title>
var StyleFile = "style" + document.cookie.charAt(6) + ".css";
document.writeln('<link rel="stylesheet" type="text/css" href="' + StyleFile + '">');
</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>

Initial URL

Initial Description

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

Initial Tags
css, javascript, html, style

Initial Language