How to count specified hotspots?

  • There seems to be a way to TAG hotspots.

    Can count all hotspots.
    hotspot.count

    Is it possible to count hotspots with only specified tags?

    --- I am studying, but it does not move. --- *confused*
    <action name="hs_tag_count_print"><![CDATA[
    for(set(i,0), i LT hotspot.count, inc(i),
    copy(hotspot_hide,if(hotspot[get(i)].tag == hide, hotspot.count);););

    calc(plugin[hotspot_hide].html, 'hide:' + hotspot_hide +' );
    ]]></action>

    I'm sorry, my English is not good.
    thank you.

  • Hello, try this code:

    Code
    <action name="hs_tag_count_print">
    		set(hs_tag_count,0);
    		for(set(i,0), i LT hotspot.count, inc(i), 
    		  if(hotspot[get(i)].tag == "hide",
    		  	inc(hs_tag_count);
    		  );
    		);  
    		calc(plugin[hotspot_hide].html, 'hide:' + hs_tag_count );
    	</action>


    Piotr

Participate now!

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