Javascript Specific Attribute Altering
<p>I have a sitemenu of which has links(ofcourse it does, its a blinking sitemenu), they only change colour when hovered over, these links are controlled by my sitemenu.php which is included in each page for easy alteration to the sitemenu.. My perdicament is that now I'd like it so that when you're on a page, the link which took you there is coloured until you leave that page. Which I can't do manually because all of the links are on one primary php script which if altered alters the rest in the same fashion.</p>

<p>I know how to add a class which will permanately colour a link but have no clue how to do the javascript though I think it would just use the current page url, find that in the sitemenu and add a class attribute. </p>
