Created
September 29, 2013 14:55
-
-
Save 3200creative/6753176 to your computer and use it in GitHub Desktop.
jQuery script to change hyperlinks site wide to one of a random array of colors.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function ($) { | |
$('a' ).each(function() { | |
var col = Array("#68be61","#ee3658","#ef4136","#f7931e","#2eabe2","#5a5faa"), pkr; | |
pkr = Math.floor(Math.random() * col.length); | |
$(this).css('color', col[pkr]); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment