Visit a Fantastic 3D World with Anything3D, the World's Leading Provider of 3D Imaging and Virtual Tour Solutions
|
|
|
Anything3D Pano Viewer Pro Tutorial
|
Example 5. JavaScript/HTML Control
|
PanoViewer makes quite a few variables accessible to external integration and manipulation.
|
|
These external APViewer Comands can use with JS.
Example:
<a class="btext" href="javascript:document.apv.viewer('toggleQuality()')"> Toggle Quality </a>
This link calling javascript comand. Object document is general in JS and contain info about document.
Use: document.objectName.propertyOrMethod
In this exam we use objectName (applet name) as apv (applet tag has: name="apv" )
'propertyOrMethod' - 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 the WEB gives an essential freedom of control and allocation of panoramas on the page.
|
|
|
|
|
© 2000-2002 All Rights Reserved.
|