Welcome to Islandnet.com  
Locally owned and operated since 1993  
Live Help
LOG IN:  Username:    Password:    

SequenceIt

Synopsis

This gadget can be used to insert different links, images, text, etc. on the fly. You simply provide a list of items, and this gadget will cycle through them, displaying a different one each time your page is accessed (in sequence). When it has done them all, it starts over at the beginning again. Very useful for putting banner ads on your web pages.


Setup

To put a sequenced value into your web page, simply embed a tag like this:

<!--#exec cgi="/cgi-bin/sequenceit?login=LOGIN&file=FILENAME" -->
Replace LOGIN with your real Islandnet login name (email aliases cannot be used here), and replace FILENAME with the name of a file that contains your list of items.

Note that FILENAME is relative to your root directory, not your "www" directory. This allows you to keep your sequence list invisible from snooping browsers.

Regardless of what you specify for FILENAME, the extension ".lst" will automatically be added. So if you specify a filename of "test", then the gadget will actually look for the file "test.lst". As well, the gadget will create a file called "test.seq" to keep track of which item was last inserted.

Likewise, if you specify "www/test" as the file name, it will look in your "www" directory for "test.lst", and it will create "test.seq" in there too.

Next you need to create a ".lst" file. This is a plain text file with one item per line. The gadget will display one line from this file each time it is invoked. It will display them in sequence, and when it reaches the end it will start over with the first one again.

Each line can be up to 4K in length, and may contain straight text, html, image tags, links, etc.

This gadget is especially useful in conjunction with the ReflectIt gadget to produce banner ads. Simply make each line in the .lst file a clickable image that calls the reflect gadget to count the click and redirect the browser to the ad page.



Page generation time: 0.04 seconds