My client has asked to have the ability for the user to turn all icons/off/on. Looking through the forum I found this code:
onclick="switch(plugin.visible)"
So created a plugin as below:
<plugin name="off-on"
align="top" x="-50" y="35"
url="../hotspots/off-on.png"
alpha="1.0"
keep="true"
onhover="showtext('turn all hotspots off ',hotspottextstyle);"
onclick="switch(plugin.visible)"
/>
Now my 'stupid' question! - this works fine, but of course the off-on plugin also vanishes, so you cant turn the plugins back on again.
Any ideas for some simple mods to the above, so that the 'off-on' plugin remains visible.
Thanks in advance
Tim