Cssmagic v/1.2 - a program to change stylesheets dynamically. (c) 2003-2004 [email protected]
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<? include_once("cssmagic.php") ?>
<? csstag(); ?>
<link rel="stylesheet" type="text/css" name="name_of_stylesheet" href="/path/to/css/name_of_stylesheet.css" media="screen" />If you have chosen the mozilla friendly version (see the configuration section of cssmagic.php) the script will also create alternative stylesheet tags for the other stylesheets. Please note that this isn't saved in cookies, so when the user re-visits the page, he or she is likely to see the default stylesheet.
<? csslist(); ?>
<li><a href="(parsing options)">name_of_stylesheet</a></li> <li><a href="(parsing options)">another_stylesheet</a></li> <li><a href="(parsing options)">third_stylesheet</a></li> etc..
<? csslist(); ?>
tags there,
and just the
<? csstag(); ?>
tags at the other pages. That way the focus of the user can be on the actual content, not the technical stuff. :-)