Hi Eliza,
PHP processes the page before it is displayed, therefore, the HTML outputted would look like this:
<a href="/" onmouseclick="">.."</a>
If you want to set a cookie with a mouse click, you need to call a URL with a script in it, like so:
<a href="setshade.php?shade=5">..</a>
In setshade.php, you'd have the following:
if (isset($shade)) {
setcookie(...);
}
It sounds like you need a more general introduction to PHP, so I'd recommend browsing around the tutorials a bit.
Kind Regards,
David Grant