add an external image for detail out of the pano

  • Hi,

    I'm trying to create a hotspot on a building in my panorama and after click on it it will open a photo of the front of the building.
    I was not able to find an example in the krpano viewer examples. I was working with the "flyout-hotspots" and "introimage" example but I got no working xml which fit's my requirements.

    I've no problems to create the hotspots, I only need help to create the "action"-tag in the xml and the" onclick=" - attribute in the hotspot.

    Thanks for your help.

    Regards

    Christoph

  • Hi,

    include the 'photo' as plugin and invisible (visible="false" and alpha="0.0"):

    Code
    <plugin name="photo"
            url="photo.jpg"
            align="center"
            visible="false"
            alpha="0.0"
            onclick="tween(alpha, 0.0, 0.5, default, set(visible,false));"
            />

    and to show it, call that code in the hotspot onclick:

    Code
    <hotspot ...
             onclick="set(plugin[photo].visible,true); tween(plugin[photo].alpha,1.0);"
             />

    best regards,
    Klaus

Jetzt mitmachen!

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