<?php $ss = new Styleswitcher(); $ss->switcherPath('/switcher/switcher.php'); $ss->addStyle("basic", "/switcher/c/basic.css", "", "", true); $ss->addStyle("normal", "/switcher/c/normal.css", '', 'Normal'); $ss->addStyle("high", "/switcher/c/high.css", '', 'High Contrast'); $ss->addStyle("large", "/switcher/c/large.css", '', 'Large Text'); $ss->addStyle("small", "/switcher/c/small.css", '', 'Small Text'); $ss->createSet("fonts"); $ss->addStyleToSet("fonts", "large"); $ss->addStyleToSet("fonts", "small", true); $ss->createSet("style"); $ss->addStyleToSet("style", "normal", true); $ss->addStyleToSet("style", "high"); $ss->cookieName = "styles";
<?php require_once "Styleswitcher.php"; $ss = new Styleswitcher('/switcher/v2/'); $ss->addStyle("blue", "blue.css"); $ss->addStyle("green", "green.css"); $ss->addStyle("large", "large.css"); $ss->addStyle("normal", "small.css"); $ss->createSet("fonts"); $ss->addStyleToSet("fonts", "large"); $ss->addStyleToSet("fonts", "normal", true); $ss->createSet("style"); $ss->addStyleToSet("style", "blue", true); $ss->addStyleToSet("style", "green"); $ss->cookieDomain = ".robballou.com"; $ss->cookieName = "cwStyle"; $ss->start();