Reputation: 1
I have scrolling HTML text in Actionscript 2. How do I make each line alternate colors back and forth (for intended readability)? I don't want to have to code the color for all 600 lines or use mass-replace function, if possible!
Upvotes: 0
Views: 272
Reputation: 11714
Take a look at Zebra striping. You don't need to use Javascript for this. The :nth-child(odd)
in CSS should suffice.
Upvotes: 1