View Single Post
Old 12-22-2007, 04:29 PM   #4 (permalink)
Capo64
Contributing Member
 
Join Date: 06-11-07
Posts: 153
iTrader: 0 / 0%
Latest Blog:
None

Capo64 is on the right pathCapo64 is on the right pathCapo64 is on the right path
if you want to have a different style based on a query string.
EG: www.mysite.com?style=1
you can do it like this
Code:
<?php switch($_GET['style']) { case 1: $style="style.css"; break; case 2: $style="style2.css"; default: $style="style.css"; break; } ?>
then in <head>
Code:
<link rel="stylesheet" href="<?php echo $style; ?>" type="text/css">
Capo64 is offline   Reply With Quote