Sequenced Text

This gadget displays one line of text from a file each time it is called. It cycles through all the lines of the file and then wraps around to the first and starts all over. By default it switches to the next line in the file on every invocation.

To embed it in your page, insert the following tag:

<!--#exec cgi="/cgi-bin/ms2/ACCOUNT/sequence?f=FILE" -->
Where ACCOUNT is your account name, and FILE is the name of the text file, relative to your root directory (without the ".lst" extension as it is assumed). The file must end with a ".lst" extension (the first letter is "l" as in "list").

The gadget will create another file with the same name except it will have a ".seq" extension. This is used to keep track of which line was displayed last. If you delete this file it will start over with the first line.

You can control when the gadget switches to a new line of text by adding the optional "&w=WHEN" to the URL, where WHEN is one of "year", "month", "day", "hour", "minute", or "second". So specifying "&w=day" would cause the line to change daily instead on every invocation.


Copyright 2002 by islandhosting.com Site design by Islandnet.com