Create as many message[#] as you need... just number them numerically.

Change ==> if (text == 4) {text = 0; } // change the # 4 at the left to the maximum # of message lines you want included.

Adjust the STYLES to suit your needs.

You can transfer the 'javascript' code to an external file to minify your page size.



[ This code example from Alternating Message Text Box Code Snippet page. ]