Hi, this page demonstrates the use of my "TRAIL.IH" header file.
Note that not all images need be the same and they certainly do not have to be a redball and they can be any reasonable size.
You can also have as few or as many "dots" as you wish and change "gravity" and how elastic the string is along with many other values.
With the code written as is the "redball.gif" file must appear in the same directory as the html for the image to be loaded at runtime.
The complete source code for this page is shown below:
;----------------------------------------------------------------------------
; MODULE NAME: TRAIL.IT
;
; DESCRIPTION: This is a sample file which demonstrates how the
; "TRAIL.IH" file can be used.
;
; You can generate the html at any time by (windows):
;
; regina ppwizard TRAIL.it
;
;----------------------------------------------------------------------------
;--- Load Trail header file (set some options) ------------------------------
#define TRAIL_INLINE_CODE
#include "TRAIL.IH"
;--- Start of HTML ----------------------------------------------------------
#define PageTitle Sample Page for the TRAIL.IH (ball trail)
<HTML>
<HEAD>
<TITLE><$PageTitle></TITLE>
</HEAD>
<BODY>
<CENTER><H1><$PageTitle></H1></CENTER>
;--- Some HTML --------------------------------------------------------------
<P>Hi, this page demonstrates the use of my "TRAIL.IH" header file.
<P>Note that not all images need be the same and they certainly do not have
to be a redball and they can be any reasonable size.
<P>You can also have as few or as many "dots" as you wish and change
"gravity" and how elastic the string is along with many other values.
<P>With the code written as is the "redball.gif" file must appear in the same
directory as the html for the image to be loaded at runtime.
;--- If user has downloaded the header then show the source code ------------
#if FindFile("HTMLPRE.IH") <> ''
;--- Header available ------------------------------------------------
<P><HR COLOR="red" size="1">
<CENTER><H1>This pages Source Code</H1></CENTER>
<P>The complete source code for this page is shown below:
#include "HTMLPRE.IH" ;;Load "smart" PRE support (takes care of unsafe chars etc)
<$ExampleFile FILE="TRAIL.IT" STATE="REMEMBER">
#endif
;--- Define the dots --------------------------------------------------------
<$ElasticDot SRC="redball.gif">
<$ElasticDot SRC="redball.gif">
<$ElasticDot SRC="redball.gif">
<$ElasticDot SRC="redball.gif">
<$ElasticDot SRC="redball.gif">
<$ElasticDot SRC="redball.gif">
;--- End of HTML ------------------------------------------------------------
</BODY>
</HTML>