John Strait
Moderator Username: Jstrait
Post Number: 103 Registered: 5-2001
| Posted on Tuesday, June 29, 2004 - 11:02 am: | |
The Panorama Factory does not directly support the auto-rotate feature available in PTViewer. This is on the list of requested features, but it may be some time before we can add it. Fortunately, PTViewer permits you to specify auto-rotation using the HTML code of the web page containing the viewer. There are two different ways you can do this. 1. Add this line:
<param name=auto value="2"> immediately after the line
<param name="file" value="myimage.jpg"> The number controls speed of rotation. Use a larger number to rotate faster. Positive numbers select rotation to the right, negative numbers select rotation to the left. --OR-- 2. Add an "onload=" parameter to the document's "body" tag to specify auto-rotation. Here's an example of how to do it:
<body bgcolor="#FFFFFF" onload="document.myimage.startAutoPan(2,0,1)"> In this example, you would replace "myimage" with the name of your image as specified when you saved the image. The first number ("2") in the "startAutoPan" statement controls speed of rotation. Use a larger number to rotate faster. Positive numbers select rotation to the right, negative numbers select rotation to the left. The second number ("0") increments the tilt angle. "0" keeps the tilt angle constant. The third number ("!") multiplies the zoom value. "1" keeps the zoom constant. Complete documentation on PTViewer is available through other web sites. See PTViewer References for a list of web sites that contain PTViewer documentation.
|