global hotspot settings.

  • Im just having a play with krpano, and id like to have a textfield appear on a hotspot when it is clicked, that i beleive i have managed fine using the method described in textfield instead of graphic on a hotspot .

    However setting the actions for numerous hotspots i can see getting tedious. So im wondring if there is a way to set global settings for all hotspots, something like:

    Code
    <hotspot
       onclick="set(hotspot[textfield].visible,true);
                	set(hostpot[textfield].ath, hotspot[this].ath);
                	..."
    >
  • Define an action and use that action in the onclick. Something like

    Code
    <action name="hs_clicked">
    set(hotspot[textfield].visible, true);
    set(hotspot[textfield.ath], %1)
    </action>
    
    
    <hotspot onclick="action(hs_clicked(hotspot[this].ath]));" />

Participate now!

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