There are 2 open image hotspot. to open 2 different images but somehow it is opening only one. Even when it is link differently.
Please let me know what it's wrong? Thank you.
https://at-bangkok.com/virtualtours/A…-Tha-Pra/1.html
Code
<hotspot name="spot2" url="fyi.png" onloaded="do_crop_animation(64,64, 60);" ath="-140" atv="10" onclick="action(open,openimage);" tooltip="open closet2" />
<plugin name="openimage"
url="2.jpg"
align="center" x="10" y="10"
scale="0.6"
alpha="0"
visible="false"
onclick="action(close,get(name));"
/>
<action name="open">
set(plugin[%1].visible,true);
tween(plugin[%1].alpha,1);
</action>
<action name="close">
tween(plugin[%1].alpha,0,0.5,default, set(plugin[%1].visible,false) );
</action>
<hotspot name="spot3" url="fyi2.png" onloaded="do_crop_animation(64,64, 60);" ath="-205" atv="10" onclick="action(open,openimage);" tooltip="open closet3" />
<plugin name="openimage"
url="1.jpg"
align="center" x="10" y="10"
scale="0.6"
alpha="0"
visible="false"
onclick="action(close,get(name));"
/>
<action name="open">
set(plugin[%1].visible,true);
tween(plugin[%1].alpha,1);
</action>
<action name="close">
tween(plugin[%1].alpha,0,0.5,default, set(plugin[%1].visible,false) );
</action>
Display More