Have had many questions regarding iFrames so I thought I would post this.
There are two projects attached, one for Pano2VR and one for Pano2VR Pro.
All the attached projects have an index.html page in the output folder, this represents your web page.
Why I wanted to post this was because of the name attribute that can be used in an iFrame.
The name attribute lets you target the iFrame with a link, thus changing the panorama that is being displayed.
The iFrame code I am using is:
Code: Select all
<iframe src="pano.html" name="iframe_window" width="800" height="600" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="float:left; margin-left:0px" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>
Note that the name for the iFrame is: “iframe_window”. The name can be anything but as long as it unique in your page.
The link has to include the name:
Code: Select all
<a href="http://support.ggno.me/hut" target="iframe_window">The Hut</a>
Also noteworthy is that fact the panorama can be hosted on the same server or as in this case on a different server or both.
When outputting from Pano2VR it is best to output with fullscreen selected.
Regards,
Hopki