Replace a portion of the target with a portion of the source. The sections to be replaced are specified through the object's <param> values.
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="replace">
and/or this <param> tag if you want it to respond to redrops:
<param name="redrop" value="replace">
The <param> values supported are:
The contents of the <tag> will be inserted into the target. Typically, the <body> tag is used here. One of the sourceTag or sourceId parameters must be set.
The contents of the <tag id="sourceId"> will be inserted into the target. One of the sourceTag or sourceId parameters must be set.
The new information will be placed at the start of the <tag>. One of the targetTag or targetId parameters must be set.
The new information will be placed at the start 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 target section (identified by a tag in the target file with an id="replace-target" attribute) being replaced by the body of the source file.
<object declare classid="HTMLDropOps" title="Some Id Here">
<param name="drop" value="replace">
<param name="sourceTag" value="body">
<param name="targetId" value="replace-target">
</object>
Later in the document, where we want to have the replace take place, we would have a tag like this:
<div id="replace-target">
<p>You could have something here, or not...</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.