Ok, so not everyone has the same monitor and not everyone has 20-20 vision. So, since the "Ctrl++" trick is not well known you have to make a font size chooser for your site. So here is what I have done:
[php]<?php
if ((isset($_GET['stylesheet'])) && (strlen($_GET['stylesheet']) <= 25)) {
$stylesheet = mysql_real_escape_string(strip_tags($_GET['stylesheet']));
setcookie("stylesheet", $stylesheet, time()+31536000);
header("Location:
http://" . $_SERVER['HTTP_HOST']
. dirname($_SERVER['PHP_SELF'])
. "/");
}
if (!isset($_COOKIE["stylesheet"])) {
$stylesheet = 'white';
} else if ((isset($_COOKIE["stylesheet"])) && (strlen($_COOKIE["stylesheet"]) <= 25)) {
$stylesheet = mysql_real_escape_string(strip_tags($_COOKIE["stylesheet"]));
}
$form = ' <a href="?stylesheet=white">White</a> - <a href="?stylesheet=blue">Blue</a> ';
?>[/php]
then echo the $form variable and this below:
[php]<link rel="stylesheet" type="text/css" href="/themes/code2design/<?php echo $stylesheet; ?>.css" media="screen,projection" />[/php]
The only problem is that for some reason TWO cookies called "stylesheet" are made.
So then I looked into a JavaScript method:
http://www.alistapart.com/articles/relafont/
So has anyone else done this yet? I think that if I can just figure out how to make the first code only make one cookie it would be better. So any thoughts?