Submit FAQs Awards Usage Terms Contact
Categories
Partners
DaniWeb is an exciting community for web developers, Internet marketers, and technology enthusiasts.
Other Sections
Advertisement

Compatibility
Bookmark online:

FF1+ IE5+

Random iframe content

Author: Dynamic Drive

Description: This script randomly selects from a group of URLs and displays one of them inside an iframe. Since it's an iframe, the content can be anything and everything. Some ideas for using this script are:

  • Randomly rotate and display HTML banners
  • Display a "random joke" from a large archive without having to download everything
  • Serve up random content consisting of rich HTML

The script works in IE4+/NS6+, and simply displays nothing in all other browsers.

Demo: (refresh the page to see a different content below)


Directions:

Simply insert the below code where you wish the content to appear, and configure the URLs inside to your own:

Select All