Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column60


Persistent Random Banners

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

I am writing this column from the French Alps, enjoying my yearly ski vacation. In this short column we present a new type of banner, first introduced in Jamie Jaworski's SuperScripter. 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.

Doc JavaScript Tip of the Day

The banner we show in this column is different. 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.

In this column you will learn:

We also include the listings of our code and our message feed.

Next: How to embed the persistent random banner in a page

More Resources from Doc JavaScript
Columns Popular Columns Tips Tools
Latest Columns
41-50 | 31-40 | 21-30
11-20 | 1-10
Working with Windows
JavaScript and Frames
Bookmarklets
Random Tips
Personalized Tips
RSS Channels
Menu Builder
Rollover Builder
Rotation Builder
Reference Tip Categories (want one?)
Links
For Your Site
Did you learn something? Do you like this site? Please link to us!

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Symantec Whitepaper: Converging System and Data Protection for Complete Disaster Recovery
Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
  Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Symantec Whitepaper: Comprehensive Backup and Recovery of VMware Virtual Infrastructure
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Fixing MySQL Replication · Firewall Guide: First Steps to Securing the Enterprise · VoxOx Tames the Tumultuous Communications Tangle


Created: May 8, 2000
Revised: May 8, 2000

URL: http://www.webreference.com/js/column61/index.html