home

Topics Topics Edit Profile Profile Help/Instructions Help Register Register  
Search Last 1 | 3 | 7 Days Search Search Tree View Tree View  

Auto Rotating Panorama

The Panorama Factory Forum » The Panorama Factory FAQ » Auto Rotating Panorama « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Joseph Bitti
New member
Username: Joeb

Post Number: 1
Registered: 6-2004
Posted on Tuesday, June 29, 2004 - 12:44 am:   Edit PostDelete Post

How do I set my PT Viewer panorama to automatically rotate when the html page is called up in a browser. Is there a specific java command that has to be added to the java script in the HTML document? If so what is the script and where in the script should it be located?
Top of pagePrevious messageNext messageBottom of page Link to this message

John Strait
Moderator
Username: Jstrait

Post Number: 103
Registered: 5-2001
Posted on Tuesday, June 29, 2004 - 11:02 am:   Edit PostDelete Post

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.

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Administration Administration Log Out Log Out   Previous Page Previous Page Next Page Next Page