3.3The sample codes for calling the Java applet of the camera control panel
The
The Java applet of the camera control panel need to be selected properly by the client PC environment. The sample codes as follows provides the way to determine which applet is to be selected and load the appropriate applet to control the Pan, Tilt, Zoom, and Focus. Refer to the "Supplementary 1" of chapter 3.1 about the way to describe <IP>. The sample codes use the background color of #4B6EB6 to correspond to the color of the panel.
<!DOCTYPE HTML PUBLIC
<HEAD>
<META
<META
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function CControl()
{
an = navigator.appName; document.open();
if( an != "Microsoft Internet Explorer"){
document.write("<APPLET CODEBASE='<IP>/home/l2/' CODE='cameracontrol.Controler.class' ARCHIVE='CControl.jar'");
}
else{
document.write("<APPLET CODEBASE='<IP>/home/l2/' CODE='cameracontrol.Controler.class' ARCHIVE='CControl2.jar'");
}
document.write(" WIDTH=160 HEIGHT=255 HSPACE=0 VSPACE=0 ALIGN='top'>"); document.write("<\/APPLET>");
document.close();
}
<BODY bgcolor="#4B6EB6"> <SCRIPT TYPE="text/javascript">