PTViewer Example

This example demonstrates linking several instances of PTViewer via JavaScript. This requires LiveConnect which is only available on Netscape (all platforms) and Internet Explorer (Windows). The master applet in the center below controls pan, tilt and zoom in the three slave applets. The applets are initialized by these statements
 
 

<applet archive=ptviewer.jar  code=ptviewer.class width=320 height=200 name=master mayscript=true>
    <param name=file value="Monument.jpg">
    <param name=getview value="changeview">
</applet>

<applet archive=ptviewer.jar  code=ptviewer.class width=160 height=100 name=slave1>
    <param name=pan value=90>
    <param name=file value="Monument.jpg">
</applet>
etc, see the source of the page for details.
The JavaScript function "changeview" is defined by:
 
function changeview(p,t,f) {
   document.slave1.gotoView(p+90, t, f);
   document.slave2.gotoView(p-90, t, f);
   document.slave3.gotoView(p+180, t, f);
 }