New User: How to create hotspot to an image popup, open URL in new window, play video, etc

  • hello

    I'm evaluating the KR pano software because the Tourweaver software I bought was too limiting.
    Also their customer support was very poor, and they don't have this great community forum for help either!

    I've done brief searches through the documentation and this forum and wasn't able to find what I needed:

    1. I use javascript and xml to configure a pano. Is this correct?

    2. Exactly how can I create a hotspot using the XML file to pop open an image file?

    3. How do I create a hotpot to open a video file?

    4. How do I create a hotspot to open a URL?

    5. Can I use a video to transition between two pano scenes?

    Thanks for helping or at least pointing me in the right direction.

  • Hi,

    1. I use javascript and xml to configure a pano. Is this correct?

    No directly...
    Javascript can be used to setup and control krpano, but typically it is only used for embedding the viewer into the webpage.

    2. Exactly how can I create a hotspot using the XML file to pop open an image file?

    There are no automatic functions like 'pop up an image' in krpano, but there are several ways and possibilities to do that.
    e.g. on way would be creating the image in the xml (via <layer> element) and setting it to invisible (visible=false), then creating an hotspot and in the onclick event of that hotspot changing the visibility of the image.

    e.g.

    Code
    <layer name="popupimage" url="popupimage.png" align="center" visible="false" onclick="set(visible,false);" />
    <hotspot name="spot1" url="spot.png" ath="10" atv="10" onclick="set(layer[popupimage].visible,true);" />


    Please lookup each xml tag and attribute here in the online xml reference:
    https://krpano.com/docu/xml/#layer
    https://krpano.com/docu/xml/#hotspot
    https://krpano.com/docu/actions/#set

    3. How do I create a hotpot to open a video file?

    Same as above.

    4. How do I create a hotspot to open a URL?

    Basically the same as above, but use the openurl() action in the onclick event-

    5. Can I use a video to transition between two pano scenes?

    When you have a transition-video - yes - in this case start the video with the videoplayer plugin, and in the onvideocomplete event load the next pano.


    Note - to understand that all above and be able to use it, you might need to start slowly and learn the krpano xml usage step by step by playing with the examples and xml/actions documentations.

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!