Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Valery Kukatov
6,996 PointsCreating an active webpage
I would like to build a website that can also be ported and become an application, probably using webworks 2.0. Let's say I want to divide page into 3 separate vertical rectangles. How do I make one or each of these rectangles constantly cycle through specific set of colors, and when I mouse click or tap on it on touch screen, the rectangle will become that color which was pressed at a time?
I hope this makes sense. Let's say there are only 3 colors, red, blue and green. How do I make it cycle and stay at one color when tapped, at the moment it was tapped on?