curiouscat.comCurious Cat Code
curiouscat.com > code > JavaScript > Random Display

This example shows how you can dynamically display an item (text, links, images, banners) based on the minute. It can easily be modified to display an item by the day, data, hour or other Javascript variables.

Please feel free to use our code as long as you include our copyright notice:

© 1999 curiouscat.com. For more free code visit Curious Cat Code: http://www.curiouscat.com/code/. Free use of this code is granted as long as this entire copyright notices is included whenever the code is used.

The Code chooses the content displayed between the lines (below) based on the minute. If minute (the minute in the current hour) is less than or equal to 15 the amazon banner appears. If minute is is between 15 and 31 the JavaScript books appears. If the minute is greater than 30 then the Google ads appear.

Curious Cat Computer Books offers several excellent JavaScript and Java Books in addition to other excellent books on HTML, Cold Fusion, graphics... Also Curious Cat Cool Connections offers links to some excellent JavaScript sites.


Purchase JavaScript - the Definative Guide now.                     Buy the JavaScript Bible now.

Purchase the excellent books above by clicking on the images or go to the Curious Cat Computer Books for more JavaScript and Java Books.




View a txt file with the JavaScript Dynamic Display code.

© 1996-2008   curiouscat.com      Feedback - Contact Us
Curious Cat web site by Curious Cat Creations. We can help create or improve your online presence.