April 1, 2000 - Banner Types | WebReference

April 1, 2000 - Banner Types

Yehuda Shiran April 1, 2000
Banner Types
Tips: April 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

We have previously presented various types of banners in our columns. The first one was a rotating text banner. In this banner, an array of messages is rotating on a fixed schedule, showing one message at a time. The second one we described was a sliding JavaScript banner. In this one, the effect of sliding is achieved by gradually revealing a new message while hiding the previous one. As in the previous banner, the sliding speed is predetermined and so is the number of the messages and the order in which they appear. The third banner we programmed was a scrolling HTML board, brought to you in three versions: Netscape Navigator, Internet Explorer, and browser-independent. This banner shows multiple messages that scroll up, showing off new messages at the bottom and removing old ones at the top. The speed of scrolling is predetermined and so is the order of the messages across the board.

The last banner we presented was the persistent random banner. The message displayed in this banner is determined upon loading and does not change until a further reloading of the page. The message on this page is randomly selected from a feed of preprepared messages. The selection does not need to be random, however. The banner can be programmed to display a new message every hour of the day, every day of the week, every day of the month, or just a random message every time the page loads or reloads. Obviously, if you have a long message feed and you decide to go with these persistent random messages (a new message every day of the week, for example), some messages will never show up.