I have a very nice hide/show controls toggle button. It works well, but when you select "show" it shows all the buttons (of course) including both states of "toggle" buttons. That means you need to click on the toggle button twice before it gets back to normal operation.
How can I get around this ? Somehow it needs to know the state of the full-screen/close full-screen state ?
Here is the "show" button code. Any ideas much appreciated.
Code
<plugin name="show"
url="44-show.jpg"
keep="true"
visible="false" enabled="true" handcursor="true" capture="true" children="true"
zorder="0"
alpha="0.60" blendmode="normal"
smoothing="true"
origin="leftbottom" edge="left"
x="10" y="35"
width="" height=""
scale="1"
onloaded="set(plugin[stoprotate].visible,false);"
onover="set(blendmode,normal);set(alpha,0.8);"
onhover="showtext(Show controls);"
onout="set(blendmode,normal);set(alpha,0.6);"
ondown=""
onup=""
onclick="set(show.enabled,true); set(plugin[show].visible,false);
set(plugin[left].visible,true);
set(plugin[stopbutton].visible,true);
set(plugin[openfs].visible,true);
set(plugin[closefs].visible,true);
set(plugin[playbutton].visible,true);
set(plugin[up].visible,true);
set(plugin[down].visible,true);
set(plugin[right].visible,true);
set(plugin[in].visible,true);
set(plugin[out].visible,true);
set(plugin[startrotate].visible,true);
set(plugin[stoprotate].visible,true);
set(plugin[home].visible,true);
set(plugin[hide].visible,true);
set(plugin[hide].visible,true);"
ox=""
oy=""
rotate="0"
/>
Alles anzeigen