Log in

View Full Version : Background Color Toggle Script



pinpine
11-27-2007, 04:47 PM
hi guys,

At the moment I have a simple list in my page as followed:

<ul>
<li> text </li>
<li> text </li>
<li> text </li>
</ul>

What i want is the background color of every <li> to toggle, so: entry1=red entry2=green entry3=red etc.

Is this possible with java/css ?