Css Switcher

November 5, 2007 at 9:58 am Leave a comment

<html><head><title>Cool and Refreshing</title>
MaxStyleNum = 3;
StyleNum = parseInt(document.cookie.charAt(6)) % MaxStyleNum + 1;
if (isNaN(StyleNum)) StyleNum = 1;
document.cookie=’style=’ + StyleNum;
StyleFile = “style” + StyleNum + “.css”;
document.writeln(‘<link rel=”stylesheet” type=”text/css” href=”‘ + StyleFile + ‘”>’);
<h2>Live in Style</h2>

Entry filed under: css.

solution for paragraph bugs in ie7 Css Switcher

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Flickr Photos

Top Clicks

  • None

Blog Stats

  • 730,517 hits

%d bloggers like this: