![]() |
Before you read this document, be sure that you have read everything in the
Readme.html document. It contains information
that could prevent a lot of frustration on your end.
Throughout this document, italicized text can be found. The text in italics is not required to be in the tag, but can be in the tag. In this document, I display the tags in ALL CAPS. Please note that the tag names, block names, chunk names and variable names aren't case sensitive. However, file names are case sensitive and variables are printed exactly as they are typed. In many of the tags VAR1="VAR1" VAR2="VAR2" appears. This means
that you can declare variables local to the tag. However, you can name them anything
you want and can have as many of them as you want. VAR1 and VAR2 are just used as
examples. For example, the following tag is perfectly legal:
|
This tag is required at the beginning of every HTML-X file. The value of the SRC parameter is the name of the default definition file. All styles will look in this file for information unless the style tag has a SRC value.
This tag looks for the chunk named "START" in the block named "NAME" in the definition file named "SRC". If no SRC is defined, the SRC defined in the <|HTMLX> tag will be used.
This tag looks for the chunk named "END" in the block named "NAME" in the definition file named "SRC". If no SRC is defined, the SRC defined in the <|HTMLX> tag will be used. Please notice the / in the tag above and try to think of <|STYLE> and </|STYLE> as and or any other set of HTML tags.
This tag randomly picks a chunk from all of the chunks named "RANDOM" in the block named "NAME" in the definition file named "SRC". If no SRC is defined, the SRC defined in the <|HTMLX> tag will be used.
This tag picks a chunk in the block named "NAME" in the definiton file named "SRC". The chunk is determined by the current time and the chunks defined in the block "NAME". The following is an example TSTYLE block:
color { hour(1,3-5) [<font color="#00FF00">] minute(0-30) [<font color="#FF0000">] second(0-59) [<font color="#FF00FF">] }
If the hour is 1 or 3-5 (think military time), the first chunk is printed. If the hour is not 1 or 3-5 and the minute is 0-30, the second chunk is printed. If the hour is not 1 or 3-5 and the minute is not 0-30 and the second is 0-59, the last chunk is printed. The order of chunks is very important. If the second(0-59) chunk was first, it would always be printed because the seconds of time are always between 0 and 59.
Things to keep in mind while using TSTYLEs:
* HOUR runs from 0 - 23, other numbers will be ignored.
* MINUTE runs from 0 - 59
* SECOND runs from 0 - 59
* You can use lists and/or intervals (i.e. hour(1,2,3,4-10) minute(1) second(10-30,45-50) )
* If you have problems with TSTYLE it might not be your fault. I haven't been able to test everything thoroughly.
This tag looks for the value of "NAME" in the parent tag. For example, if the tag <|VAR NAME="MIKE"> was a child of the tag <|STYLE NAME="STYLE" MIKE="The Man">, "The Man" would be printed. For clarity, the parent tag of a block is the tag that references the block in an HTML-X file or a definition file. The parent of a parent tag is known as the grandparent tag. The <|HTMLX> tag is a grandparent tag when HTML-X is inside of any tag inside an HTML-X file. This probably doesn't make much sense, but, try referencing a variable declared in the <HTMLX> tag inside of block. Anyway, just play around with variables and tags inside of tags.
This tag prints the date in the specified format
Formats:
LONG - Sunday, January 1, 1998
MONTH - 1
DAY - 1
YEAR - 1998
SHORT - 1/1/1998
If the format parameter is omitted, the SHORT format is printed.
This tag prints the time in the specified format
Formats:
MILITARY - 00:00:00
HOUR - 00
MINUTE - 00
SECOND - 00
STANDARD - 12:00 AM
If the format parameter is omitted, the STANDARD format is printed.
This tag prints out the ASCII text file "NAME". You can try to print other files with this command, but HTML-X might crash.
If you have any questions or comments about HTML-X, e-mail me at numlumps@hotmail.com.
The HTML-X web page is located at
http://www.geocities.com/Athens/Parthenon/1774/htmlx.htm
Be sure to stay in touch.