Need Help with Styleswitcher

They have: 4 posts

Joined: Jul 2005

Could someone help me with a Styleswitcher, I don't understand most of it...
I think that "blue","green","large" & "small" are all different & they would load in that order... Is it possible, with this script, to block selected links??? And the cookie domain would be my domain???

<?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 = ".contrastsweb.com";
$ss->cookieName = "cwStyle";

$ss->start();
?>

Be gentle, I'm very new to this...
Renroc

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Quote: I think that "blue","green","large" & "small" are all different

Seems so, they're all pointing to different stylesheets.

Ok, I'm very unsure what the actual question is here, also "Styleswitcher.php" is being included and seems to be where most of the work is happening.

So - and I'll ask gently Wink - could you give us a little more information and explain the actual question a bit better, especially exactly what it is you're trying to achieve and hopefully we can help Laughing out loud

Welcome to the forums btw :wave:

a Padded Cell our articles site!

They have: 4 posts

Joined: Jul 2005

Sorry it's taken so long to get back to you.. thanks for getting back to me...
At present I can't remember why I posted the question... if I remember I'll post it again with more information..
R

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.