User`s manual
130
Using the Still Image Recording Service to Send Information
script.template.html
<html>
<head>
<script language="JavaScript">
<!---------------
var INDEXDIR = "http://
__HTTP_SERVER_HOST_AND_PORT__/
-wvdoc-01-/Snap/";
var applet =
top.appletFrame.document.SnapSelector;
var count = applet.entrySize();
//-------------->
</script>
</head>
<body>
<script language="JavaScript">
body = '<table border>\r\n';
for(i = 0 ; i < count ; i++)
{var cap = applet.replace("CAPTION",
i);
var pan = applet.replace("PAN", i);
var tilt = applet.replace("TILT", i);
var zoom = applet.replace("ZOOM", i);
var file = INDEXDIR +
applet.replace("FILE_NAME", i);
body += (i % 2 == 0) ? '<tr><td>' :
'<td>';
body += '<table><tr><td><img src="' +
file + '"></td></tr>\r\n';
body += '<tr><td><center>';
body += cap;
body += ' (pan:' + pan;
body += ' tilt:' + tilt;
body += ' zoom:' + zoom + ')';
body += '</center></tr></td></table>';
body += (i % 2 == 0) ? '</tr></td>' : '</
td>';body += '\r\n';}
body += '</table>';
document.write(body);
document.close();
</script>
</body>
</html>
Again, the script.template.html file is for
use by the automatic sample page
generation function. However, all the
images in the group are displayed in this
sample.
The images are displayed embedded in
the table. The table is automatically
created by the JavaScript program in
script.template.html.