Angelfire
Username:    Password:   
Build > Script Library > Random Content Script

Script Library: Random Content

Make your page as unpredictable as New England weather. (Hit reload to see a new random quote)

Example:

With random content, you create a pool of text - quotes, philosophical musings, images, or in the example below, Angelfire's favorite movie quotes. Sorry, sounds aren't currently supported by this script.

Instructions:

Create a subdirectory (using the Webshell) where your content will be located - you may want to call it something like "randomquotes" or "random". Your content consists of multiple text files, each just containing one item - like a quote, or a snippet of HTML for a GIF or JPEG, or whatever each random item is. Each random item will be a separate text file in your subdirectory. Everything in the directory will be included in the random rotation. Copy the Snippet of HTML from the text area below and adjust it to refer to your special subdirectory and your membername, and then paste it on the page where you want the random contant to appear.

Step-by-step example:

1. Create a subdirectory called "random", using the Webshell. Open the subdirectory with the Webshell so you are viewing inside that subdirectory. This example will be random welcome messages for your site.
2. Make a file called quote1.txt using the Webshell - use the Advanced Editor. It should be in the "random" subdirectory that you just created. The file should contain nothing but the line "Hi! Welcome to my site!".
3. Make a file called quote2.txt using the Webshell - use the Advanced Editor, and make sure it is in your "random" subdirectory.. This file should contain nothing but the line "Hey dudes! Welcome to my little piece of the Web!".
4. Continue to create as many welcome "quote" files as you want. If you want the random insert to be a picture, you'll have to put a snippet of HTML sort of like the following, in each file in your "random" directory:

<IMG SRC="/ma2/superdude/party.jpg" HEIGHT="128" WIDTH="235">

5. Now you just have to copy the snippet of HTML from the text box below, and paste it into a page on your site, wherever you want the random content to appear. Make sure you adjust the directory=YOUR_SUBDIRECTORY_NAME part to refer to the special subdirectory that you created (directory=random in our example) and the member_name=YOUR_HOMEPAGE_DIRECTORY_NAME part (such as member_name=ma2/superdude).