Toggle, hide-unhide HotSpots HTML5/ JS Viewer iPhone/iPad

  • Can anybody help with an example workaround-code for the toggle HotSpots Function that only works for flash?

    I already read about giving plugins/hotspots an ID and then I may control all hotspots with the same ID at the same time.
    But how will some code look like for this?

    All non-programmers in the forum will be very happy *thumbsup*

    Thanks for any help!!!!!
    Holger


    here how my code looks right now:

    Code
    <plugin name="hotspots-off" devices="tablet"... onclick="hideHotSpots"/>


    So right now I must set each hotspot manually visible,false or true to make it work... It would be logical for me to give each hotSpot for example a tag="hs",
    so instead of adressing each single hotSpot I just make someting easy like this:

    Code
    <action name="hideHotSpots">set(hotspot[tag,hs].visible,false);</action>

    but this does not work *cry*</plugin>

    Edited once, last by inlinear (June 10, 2012 at 9:19 PM).

  • Hi,

    here an action that will loop through all hotspots and check if the 'tag' attribute is 'hs' and hide the hotspot if yes:

    Code
    <action name="hideHotSpots">
      for(set(i,0), i LT hotspot.count, inc(i), 
        if(hotspot[get(i)].tag == hs, 
            set(hotspot[get(i)].visible,false); 
          ); 
       );
    </action>

    best regards,
    Klaus

  • Hi,

    here an action that will loop through all hotspots and check if the 'tag' attribute is 'hs' and hide the hotspot if yes:

    Code
    for(set(i,0), i LT hotspot.count, inc(i), 
        if(hotspot[get(i)].tag == hs, 
            set(hotspot[get(i)].visible,false); 
          ); 
       );

    best regards,
    Klaus


    hello,
    After 3 years, I have a similar problem
    I do not want to hide and show what is called a hotspot
    Only hotspots with a specific name + suffix.
    (spot1, spot2, spot3,) but not (info1, info2).
    Some advice?
    thank you

Participate now!

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