Make a plugin or hotspot disapear after 4-5 seconds - how?

  • I've got 20 plugins that are all created in the bottom right of the screen, example below:

    <plugin name="hs-1-link"
    align="bottomright" x="10" y="10"
    url="../hotspots/find-150-wide.png"
    alpha="1.0"
    keep="true"
    visible="false"
    onhover="showtext('Amber Cushion',STYLE4);"
    onclick="openurl(links/hs-1.htm)"
    />

    I then have 20 polygon hotspots mapped to different parts of a pano (furniture in a room) which turn on/off the relevant hotspot above:


    <hotspot name="hs-1" style="letter"
    onhover="showtext(Amber Cushion, STYLE4);
    set(plugin[hs-1-link].visible,1);
    set(plugin[hs-2-link].visible,0);
    set(plugin[hs-3-link].visible,0);
    set(plugin[hs-4-link].visible,0);
    set(plugin[hs-5-link].visible,0);
    set(plugin[hs-6-link].visible,0);
    set(plugin[hs-7-link].visible,0);
    set(plugin[hs-8-link].visible,0);
    set(plugin[hs-9-link].visible,0);
    set(plugin[hs-10-link].visible,0);
    set(plugin[hs-11-link].visible,0);
    set(plugin[hs-12-link].visible,0);
    set(plugin[hs-13-link].visible,0);
    set(plugin[hs-14-link].visible,0);
    set(plugin[hs-15-link].visible,0);
    set(plugin[hs-16-link].visible,0);
    set(plugin[hs-17-link].visible,0);
    set(plugin[hs-18-link].visible,0);
    set(plugin[hs-19-link].visible,0);
    set(plugin[hs-20-link].visible,0);
    ">
    <point ath="102.417094" atv="-13.349988" />
    <point ath="102.522563" atv="11.23067" />
    <point ath="137.161387" atv="13.03223" />
    <point ath="137.08981" atv="-15.853687" />
    </hotspot>

    Reason for doing it this way is that for touch devices, text gets displayed on an item (onhover) and the user can then use the bottom right icon to go to a webpage for more info. With the bottom right icon being 'overwritten' when the user moves over different polygons.

    So...

    My question is that I'd like the bottom right plugin to disapear after a few seconds, so that it reappears when the use taps/hovers over another polygon hotspot.

    tried using wait and then setting visible false but this locks all interaction!

    ideas please.

    cheers
    Tim

Participate now!

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