The fade function converts from the current bgColor to a new colour. The applications for this function are varied, and the test script is only one. In fact, the current implementation is probably the worst possible one; a more suitable use would be to fade to new colours between Web pages. This would be especially effective in a frames-based interface (which we'll do in next month's examples), where the current bgColor could be stored in a variable that persists across Web pages.