How do I make an html link to a specific scene within a multi-pano tour? My pano loads up and I have three scene buttons at the bottom, but I can't figure out how to link to scenes two or three from outside of the tour.
Thanks
Rich
How do I make an html link to a specific scene within a multi-pano tour? My pano loads up and I have three scene buttons at the bottom, but I can't figure out how to link to scenes two or three from outside of the tour.
Thanks
Rich
krpano exports 1 html page for each pano. you only use 1 of them to open the tour. if you want to link to the others just link to the html page for that pano. all of your plugins and hotspots must be on each xml if you do it that way. otherwise there is a way to link to panos inside a tour. you can even inject view settings and such. i have not done it but if you search the forums you will find that way also.
krpano exports 1 html page for each pano. you only use 1 of them to open the tour. if you want to link to the others just link to the html page for that pano. all of your plugins and hotspots must be on each xml if you do it that way. otherwise there is a way to link to panos inside a tour. you can even inject view settings and such. i have not done it but if you search the forums you will find that way also.
Thanks for your response. If I understand you correctly, you are saying to create an html and xml file for each scene? Changing the xml structure to load scene two or three? What I was hoping to do was keep just one html and xml file and code a hyperlink to lead to a specific scene within it. Something like http://mysite.com/mypano.html#scene2
Thanks again
Rich
Hi Rich,
QuoteSomething like http://mysite.com/mypano.html#scene2
That is also possible using Javascript embedding method ...
Taking the Embedding into HTML (swfkrpano.js ) method, you can pass parameters from the URL to Krpano adding this line code:
swf.passQueryParameters();
<script type="text/javascript">
// <![CDATA[
var swf = createswf("../../krpano.swf", "krpanoSWFObject", "100%", "100%");
swf.addVariable("xml", "scenes.xml");
swf.passQueryParameters();
swf.embed("krpanoDIV");
// ]]>
</script>
Display More
Doing so, you can pass the scene you want to load onstart:
You can test the above with the scene example that comes inside the downloaded Krpano files ... just edit the html, adding swf.passQueryParameters(); line....
Hope this help...
SAlut.
Doing so, you can pass the scene you want to load onstart:
You can test the above with the scene example that comes inside the downloaded Krpano files ... just edit the html, adding swf.passQueryParameters(); line....
Hope this help...
SAlut.
Thanks Michel!
That was exactly the info I was looking for. I really appreciate your help.
Have a great day!
Rich
Don’t have an account yet? Register yourself now and be a part of our community!