In the random and continous manner that this fiddle changes the color of the blocks: http://jsfiddle.net/fenderistic/48KzD/ , how would I change the color for a block of words?
At first I was simply going to have each word in the phrase change with the hover and active properties, but I also wanted a onmouseout effect that would leave it different than the initial. As I learned about onmouseover (from this site), I thought about the colors perpetually changing but couldn't figure that out.
Here's what I have so far:
<div style="color:BLACK;"><font onmouseover="this.color='MAROON';" onmouseout="this.color='RED';" >THE</font></div>
<div style="color:BLUE;"><font onmouseover="this.color='NAVY';" onmouseout="this.color='SILVER';" >KID</font></div>
<div style="color:FUCHSIA;"><font onmouseover="this.color='OLIVE';" onmouseout="this.color='TEAL';" >WHO</font></div>
<div style="color:GRAY;"><font onmouseover="this.color='AQUA';" onmouseout="this.color='YELLOW';" >FOUND</font></div>
<div style="color:GREEN;"><font onmouseover="this.color='ORANGE';" onmouseout="this.color='BLUE';" >A</font></div>
<div style="color:LIME;"><font onmouseover="this.color='PURPLE';" onmouseout="this.color='GREEN';" >BASKETBALL</font></div>
The fiddle, though, looks the most entertaining. Any help or advice would be awesome. Thanks a ton!