Style Switcher
Posted: Tue Jan 04, 2005 3:43 am
here's the code
called this style.php
Place this code in plugin and call it style
After , place this code
To call the script
called this style.php
Code: Select all
<?php
setcookie ('sitestyle', $set, time()+31536000, '/', '.coolzeroz.com', '0');
header("Location: $HTTP_REFERER");
?>
Code: Select all
if ($_COOKIE["sitestyle"] == "")
{
echo "style";
}
else
{
echo $_COOKIE["sitestyle"];
}
Code: Select all
<link rel="stylesheet" type="text/css" href="{style}.css" />
Code: Select all
<a href="style.php?set=default">Change to Default</a>