If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Played around with this even more. Think I'm finished now. This requires/uses only hours and minutes, and can have as many times as you want. Colors may be repeated later with different times. Times should be sequential and fit into/cover a 24 hour period:

Looking good John except that you are only using a single cell table. The OP wanted different cells of a multi-celled table to change background colours at certain times, so that needs to be built into your "timespans" array. Also, when a cell changes colour all the other cells should revert to their original background colour as per my origin simple demo.

Looking good John except that you are only using a single cell table. The OP wanted different cells of a multi-celled table to change background colours at certain times, so that needs to be built into your "timespans" array. Also, when a cell changes colour all the other cells should revert to their original background colour as per my origin simple demo.

"timespans" is an object, but I think an array would be better. I've been playing around with both.

Like I said, I didn't read the thread. That (targeting td's sequentially with the rest of the td's reverting) would be simple to add. I'll do it soon, thanks. But what's this supposed to look like? A Christmas tree? (Just kidding about the tree, I think, would be a funny looking Christmas tree, right?) How often do the colors change? Do they indicate anything, or are they just for show?

. . . what's this supposed to look like? A Christmas tree? (Just kidding about the tree, I think, would be a funny looking Christmas tree, right?) How often do the colors change? Do they indicate anything, or are they just for show?