Use the jquery selector to select all anchor tags, then change the CSS for each element, randomly assigning color.
Something like..
PHP Code:
$(function() {
$("a").each(function (i) {
$(this).css("color",getRandomColor());
});
});
function getRandomColor() {
//return a random color value
}