Hotspot contain an image AND text?

  • I don't know if I'm doing something wrong or if it's just not possible:

    Can I have a hotspot with text and an image?

    I did the same with a layer using the container type but am scratching my head with this one.

    I even tried some trickery with


    <data name="eye"><![CDATA[


    <p><img src="EyeWhite.png" alt="nothing" /> Look</p>

    ]]></data>
    and called the data tag from inside the hotspot
    Can anyone confirm if I'm just trying something that isn't available?

  • you can't "call" a data tag, adding html to a hotspot is possible but not like this.

    you can add layers to hotspots like this (but note that such layers do not show in webvr)
    https://krpano.com/docu/xml/#layer.parent

    Code
    <hotspot name="abc" ... />
    <layer name="abc" parent="hotspot[abc]" ... >
    	<layer name="def"  ... \>
    </layer>

    if you need webvr just stack hotspots

    Code
    <hotspot name="abc_image" ... />
    <hotspot name="abc_text" zorder="1" ... />
  • Try a mouseover on the hotspot using the showtext.xml, this should allow you to display text and a picture

    Include file:

    Code
    <include url="showtext.xml" />

    Code on hotspot:

    Code
    <textstyle name="VRW_STYLE" ... />
    <hotspot onhover="showtext([p]...Header Text...[/p][img src=img/powered.png width=300px][/img][p]..Footer Text..[/p],VRW_STYLE);" name="logo" url="../img/powered.png" ... />

Jetzt mitmachen!

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