dmknetwork
03-31-2003, 12:14 PM
Quick question, and probably easy to answer for a few of you...Not me :( Thats why i am here :D . Right, on my homepage i want a simple drop box which can change External CSS on the fly. By that i mean, i want a user to be able to pick a style, press change, and then it automaticly applies that style to the page. i got sent this one by some PHP expert:
<?
if ( !isset($skin) )
{
$skin = "style.css"; //if no skin has been selected, use the default
}
require("styles/$skin"); //include the stylesheet for the skin (stored in //the /styles/ directory)
?>
This also came with skin.php and a form
But this dont work, and i dont wanna use PHP anyways, it dont work with frontpage or dreamweaver, so could someone PLEASE show me a HTML/ Javascript Based External CSS Changer! Bearing in mind i want it to be my CSS's in my CSS directory and not one that the user chooses the colours, cos there really poo... :(
Replies Apriciated, DMK.
<?
if ( !isset($skin) )
{
$skin = "style.css"; //if no skin has been selected, use the default
}
require("styles/$skin"); //include the stylesheet for the skin (stored in //the /styles/ directory)
?>
This also came with skin.php and a form
But this dont work, and i dont wanna use PHP anyways, it dont work with frontpage or dreamweaver, so could someone PLEASE show me a HTML/ Javascript Based External CSS Changer! Bearing in mind i want it to be my CSS's in my CSS directory and not one that the user chooses the colours, cos there really poo... :(
Replies Apriciated, DMK.