Looking to add some flair to my website by styling all text links with a random color using jQuery. I've been able to generate the random color variable, but struggling to integrate it into my CSS stylesheet or create a script that applies the color to all links.
I also want to customize the overall text link styling such as removing underlines, though it's proven more challenging than expected.
Here's the random color variable I'm working with:
$(function(){
//col's for random color balcony
var col = 'rgb('+ (Math.floor(Math.random()*256)) +',' + (Math.floor(Math.random()*256)) + ','+(Math.floor(Math.random()*256))+')';
And here's my attempted script:
$("a") .add("a") .css("color", "col");