Advanced Sliding Text Applet

Advanced Sliding Text Applet

[ Sliding Text ] [ Documentation ] [ Examples & Demos ] [ Buy Now ]

Advanced Sliding Text Applet - Data File

The Advanced Sliding Text Applet will read the data file in order to determine the the content to be displayed. It is recommend that, rather then creating a data file from scratch, you take a copy of one of the data files from the "./Examples/" directory and modify this with your own data.

Data File Format

To create your data file, simply open up your favorite text editor and add the text you wish to be displayed. Now save the file as 'textdata.txt' in the same directory as your web page. (If you choose to use a different filename or location remember to change the 'dataURL' parameter to reflect this.)

In addition to plain text, the Advanced Sliding Text allows you to add to special functions to the text. These are achieved by adding Special Instruction Tags within the text file. The possible tags and function are as follows,

Hyper Link - URL
You can add a link to a section of text or image by enclosing within the tags
<URL url,frame> and </URL>.

Change the Text Color
The tags <COLOR color> and </COLOR> allow you to change the color of a section of text.

Change the Font
The tags <FONT face,style,size> and </FONT> allow you to change the font of a section text.

Center Text
The tags <CENTER> and </CENTER> allow you to specify that a portion of text should be centered. Any text surrounded by the <CENTER> and </CENTER> tags will centered in the display area.

Change the Indent
Each line of Text will automatically be indented by the default indent specified in the applet parameters. However you can override this for a section of text with the tags <INDENT nPixs> and </INDENT>

Insert a Line Break
By default the Advanced Scrolling Text will start a new line at the end of each line of text in the data file. However you can force a new line at any point by inserting the tag <LINEBREAK>

Insert a Page Break
By default the Advanced Scrolling Text will start a new page when the current page is full. However you can force a new page at any point by inserting the tag <PAGEBREAK>

Change the Pause time for a Page
At the end of a page the scrolling will be automatically paused by the amount of time specified in the applet parameter 'PagePause'. However you can specify a different pause time for any page by using the tag <PAUSE time>.

Add an Image
In addition to displaying text and Image can be added to the display at any point by using the <IMG imageURL> tag.

 

Using a Server Side Process to Dynamically Generate the Data Content

Although above we have discussed building a static text file to hold the data, the content can also be supplied by a server side script (eg. PHP, ASP, JSP or Perl etc). This opens the possibility for the data to be dynamically loaded from data held within a database.

Such a server side script may be constructed in any language of your choice. The only requirement is that the output of the script provides the content in the format described above.

This opens up many possibilities for producing dynamic content. A script can be written to acquire data from virtually any data source, process the data and even generate content based upon session data (ie. a user ID).

To configure the Advanced Sliding Text Applet to acquire the data from your own server side script simply set the "data" parameter to the URL pointing to your script. eg.

<param name="data" value="http://www.yourdomain.com/data.php">

For and example of this click here»

 

« back to documentation index

[ Sliding Text ] [ Documentation ] [ Examples & Demos ] [ Buy Now ]

 

buy Advanced Sliding Text Applet