Custom properties in action.

Try moving the mouse pointer over the text items below. As the pointer reaches an item, the item will turn red. When the pointer leaves the item, it will revert back to its original colour. A single pair of JavaScript routines, goRed() and revertColor(), handle colour changes for all the items. goRed() gives each item it processes a custom property, which stores its original colour. revertColor() uses this custom property to recolour the item correctly, whatever its original colour was.

I'm some blue text!

I'm some green text! I'm some cyan text!

I'm some yellow text!


Back to issue 137 menu