errietta Posted September 9, 2008 Share Posted September 9, 2008 Is there a way to pick a random part of an array? Basically I want to mqake a script that randomly changes the border-color of a div. I put the colors in an Array but I don't know how to get a random color from the array.. Link to comment Share on other sites More sharing options...
Kingy Posted September 9, 2008 Share Posted September 9, 2008 Take a glance at this, the key is Math.random. http://www.webdeveloper.com/forum/archive/...hp/t-86785.html Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.