Insert a timestamp into the specified position in the target. The format for the timestamp is SHORT, MEDIUM, LONG, and FULL. These correspond with corresponding constants defined in the Java DateFormat class.
This Generator is invoked by inserting the following Java object into the <head> section of the page:
<object declare classid="HTMLDropOps" title="Any Name Here">
(More <param> definitions go here...)
</object>
Use this <param> tag if you want it to respond to drops:
<param name="drop" value="timestamp">
and/or this <param> tag if you want it to respond to redrops:
<param name="redrop" value="timestamp">
The <param> values supported are:
Specifies the format for the timestamp. The legal values are:
The timestamp will replace tho contents of the <tag>. One of the targetTag or targetId parameters must be set.
The timestamp will replace tho contents of the <tag id="targetId"> tag. One of the targetTag or targetId parameters must be set.
Specifies the name of the file to create from the drop. If this isn't set, the result will be the same as the generator file, with ".htmg" replaced with ".html"
Two special values can be used in this parameter: %source% is replaced by the name of the source of the content, and %target% is replaced by the name of the target file.
The following HTML code will result in the MEDIUM format timestamp being inserted into the target position (identified by a tag in the target file with an id="timestamp" attribute). The timestamp will also be set if the source is dropped into a parent folted of this one.
<object declare classid="HTMLDropOps" title="Timestamp">
<param name="drop" value="timestamp">
<param name="redrop" value="timestamp">
<param name="format" value="MEDIUM">
<param name="targetId" value="timestamp">
</object>
Later in the document, where we want to have the timestamp set, we would have a tag like this:
<div id="timestamp">
<p>Anything here will be removed</p>
</div>
It doesn't have to be a <div> tag, any tag would do. The <div> tag is convenient for this purpose, however, because it doesn't chang the formatting in any way.