Link to scene 2 in multi pano tour?

  • 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,

    Zitat

    That is also possible using Javascript embedding method *smile* ...
    Taking the Embedding into HTML (swfkrpano.js ) method, you can pass parameters from the URL to Krpano adding this line code:
    swf.passQueryParameters();


    Doing so, you can pass the scene you want to load onstart:

    Code
    http://mysite.com/scenes.html?onstart=loadscene(scene2, null, MERGE);

    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:

    Code
    http://mysite.com/scenes.html?onstart=loadscene(scene2, null, MERGE);

    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. *smile*

    Have a great day!

    Rich

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!