I would like to generate multicoloured text for various links, with a random assignment of colours to individual letters, from a pre-specified array of colours, which would chan
You could try this:
$('a').on('hover', function( { $(this).css('color', getRandomColor()); }) ); function getRandomColor() { var myAwesomeColorList['#ccc', '#fff']; return myAwesomeColorList[Math.floor((Math.random()*myAwesomeColorList.length))] }