Simple Tutorial to Swap CSS Files for HTML Web Pages
NICE!
Copy this code and paste it in your HTML
var StyleFile = "style" + document.cookie.charAt(6) + ".css";
document.writeln('
<link rel="stylesheet" type="text/css" href="' + StyleFile + '">');
<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>
URL: http://www.centerkey.com/style/switcher/
Report this snippet
Comments
Subscribe to comments