The following explains how to insert an item of DRAGRI content into a web page. See other guides published elsewhere for general information about how to write HTML.
To insert an item of DRAGRI content into an HTML file, use APPLET tags:
<APPLET>...</APPLET>
You can insert Provide the name of the parameter after NAME= and the setting value after VALUE=.
Examples of these tags are shown below.
NAME
VALUE
Default
"DIR"
If the directory in which the dragri.txt file exists differs from the directory in which this HTML file exists, use this parameter to specify the directory in which the dragri.txt file is saved.
Directory containing HTML file
"BGCOLOR"
This specifies the background color displayed on the browser while the data is being downloaded. The color is specified as RRGGBB in hexadecimal.
FFFFFF (white background)
"MESSAGE"
This specifies the character string displayed on the browser while the data is being downloaded.
DRAGRI Loading...
"PRELOAD"
If you specify TRUE, you can play the movie only after all data has been downloaded.
If you select FALSE, you can play during downloading, although the motion may lack smoothness depending on the transmission rate.TRUE
<APPLET CODE="Dragri.class" WIDTH=320 HEIGHT=240
ARCHIVE="dragri.jar" ALT="Please enable Java to see this applet.">
<PARAM NAME="BGCOLOR" VALUE="FF0000">
<PARAM NAME="DIR" VALUE="demo">
<PARAM NAME="MESSAGE" VALUE="Loading... wait a moment...">
<PARAM NAME="PRELOAD" VALUE="TRUE">
Please use a Java-enabled browser to see this applet.
</APPLET>
If there are multiple items of DRAGRI content in one site, dragri.jar need only be downloaded once by sharing dragri.jar.
An example of a suitable directory configuration is as shown below. In this example, content1 and
content2 contain the content. The two items of content share one
dragri.jar and are displayed in index1.html and index2.html.
index1.html and
index2.html are HTML files in which the DRAGRI content is embedded.
For the above directory structure, write the following tags for content1 and content2 in index.html:
Tag for content1 (written in index1.html)
<APPLET width="320" height="240" code="Dragri.class" archive="jar_files/dragri.jar"> <PARAM NAME=PRELOAD VALUE="TRUE"> <PARAM NAME=DIR VALUE="content1"> <PARAM NAME=BGCOLOR VALUE="FFFFFF"> <PARAM NAME=MESSAGE VALUE="DRAGRI Loading"> </APPLET>
Tag for content2 (written in index2.html)
<APPLET width="320" height="240" code="Dragri.class" archive="jar_files/dragri.jar"> <PARAM NAME=PRELOAD VALUE="TRUE"> <PARAM NAME=DIR VALUE="content2"> <PARAM NAME=BGCOLOR VALUE="FFFFFF"> <PARAM NAME=MESSAGE VALUE="DRAGRI Loading"> </APPLET>
To embed multiple items of DRAGRI content in one HTML file, put different items into different directories and specify dragri.jar and a set of other files in each directory.
An example of a suitable directory structure is shown below. In this example, content1 and
content2 contain content. The two items of content share one dragri.jar and both are displayed in
index.html at the same time.
For the above directory structure, write the following tags for content1 and content2 in index.html:
Tag for content1
<APPLET width="320" height="240" code="Dragri.class" archive="jar_files/dragri.jar"> <PARAM NAME=PRELOAD VALUE="TRUE"> <PARAM NAME=DIR VALUE="content1"> <PARAM NAME=BGCOLOR VALUE="FFFFFF"> <PARAM NAME=MESSAGE VALUE="DRAGRI Loading"> </APPLET>
Tag for content2
<APPLET width="320" height="240" code="Dragri.class" archive="jar_files/dragri.jar"> <PARAM NAME=PRELOAD VALUE="TRUE"> <PARAM NAME=DIR VALUE="content2"> <PARAM NAME=BGCOLOR VALUE="FFFFFF"> <PARAM NAME=MESSAGE VALUE="DRAGRI Loading"> </APPLET>
Putting multiple items of DRAGRI content in one HTML file takes up a large amount of memory. Therefore, it is not recommended.
Be sure to note the following when you upload content to the web server using an FTP client.
If the same items of content are re-created several times and uploaded to the server, sometimes the applet does not operate or the change is not reflected when you view the content with a browser.
This is because the browser reads an old file remaining in cache in your personal computer or proxy server if the browser requests the file with the same name.
To solve this, take one of the following actions:
When the content is uploaded to the server, the file name may be converted from lowercase to uppercase. This conversion may also occur if data is sent and received via a floppy disk or memory card.
Windows makes no distinction between uppercase and lowercase (not case sensitive). However, a URL is case-sensitive. If the characters of the file name change from uppercase to lowercase, the file name is assumed to be different. This means that the specified file cannot be found, and applets cannot be played.
All names of files output by DRAGRI are in lowercase. If the file name is in uppercase, convert it to lowercase.
When you upload a file to the server, do not use Japanese characters (2-byte characters) for the directory name.
You may not be able to access the file from a Web browser.