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.
|
|
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.
|
|
|
|
|
© 2000-2004 All Rights Reserved.
|