Visit a Fantastic 3D World with Anything3D, the World's Leading Provider of 3D Imaging and Virtual Tour Solutions

Anything3D Pano Viewer Pro 2.1 Tutorial

Example 5. JavaScript/HTML Control
Pano Viewer makes quite a few variables accessible to external integration and manipulation.

Standart buttons:
Graphic buttons:
One Step LeftPausePlayOne Step Right
Links: Toggle Quality
Select Pano:

Source code:


External APViewer Comands can be used with JavaScript.

Example:
<a class="btext" href="javascript:document.apv.viewer('toggleQuality()')"> Toggle Quality </a>

Object document is general in JavaScript and contains info about document.

In this example:
  • applet's name is apv (applet name tag is: name="apv" )
  • public applet method is 'viewer(String)'.
  • viewer method argument is string of comands for pano viewer:
    viewer('DrawHSImage( 0 ); DrawHSImage( 1 ); DrawHSImage( 2 );')
  • some viewer comand separated by ';'

Interaction of the applet and JavaScript/HTML gives an essential freedom of control and allocation of panoramas on the page.





TUTORIAL
Introduction
First Step: Shooting the pictures
Stitch The Images
Pano Viewer Documentation
EXAMPLES
Example 1.
Basic Pano View
Example 2.
Toolbars
Example 3.
Skins
Example 4.
Hotspot
Example 5.
JavaScript/HTML Control
Example 6.
Multi Pano Tour




© 2000-2004 All Rights Reserved.