Skip to content

Instantly share code, notes, and snippets.

@agriboz
Created August 13, 2013 09:58
Show Gist options
  • Save agriboz/6219689 to your computer and use it in GitHub Desktop.
Save agriboz/6219689 to your computer and use it in GitHub Desktop.
<?php
$tempCSS = $HTTP_GET_VARS["cssfile"];
if ($tempCSS != "") {
$loadCSS = $tempCSS;
} else {
/* sets a default CSS file if no querystring specified */
$loadCSS = "default.css";
};
$currentDesign = $loadCSS;
?>
<!-- make sure this goes somewhere between <head> and </head> -->
<link rel="stylesheet" type="text/css" href="<?php echo $loadCSS; ?>" title="default" media="screen" />
<!-- to link any particular stylesheet later, just add a querystring to the current page: -->
<a href="thispage.html?cssfile=/002/002.css">Change Style</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment