Zitat
<plugin name="map_btn" visible="false" url="newcontrols.png" crop="172|34|29|25" keep="true"
align="leftbottom" x="172" y="0" handcursor="true" alpha="0" zorder="1000"
onclick="action(showmap,maps);"
onhover="showtext(Show MAP,csmall);" onover="tween(alpha,1,0.1)"
onout="tween(alpha,0,0.5)" onloaded="delayedcall(1,set(visible,true));"/>
<action name="showmap">
set(plugin[%1].visible,true);
tween(plugin[%1].alpha,1);
set(autorotate.enabled,true);
</action>
Zitat
<plugin name="map_btn" visible="false" url="newcontrols.png" crop="172|34|29|25" keep="true"
align="leftbottom" x="172" y="0" handcursor="true" alpha="0" zorder="1000"
onclickA="action(showmap,maps); set (onclick, onclickB() );"
onclickB="action(hidemap,maps); set(onclick, onclickA() );"
onclick="onclickA();"
onhover="showtext(Show MAP,csmall);" onover="tween(alpha,1,0.1)"
onout="tween(alpha,0,0.5)" onloaded="delayedcall(1,set(visible,true));"/>
<action name="showmap">
set(plugin[%1].visible,true);
tween(plugin[%1].alpha,1);
set(autorotate.enabled,true);
</action>
<action name="hidemap">
tween(plugin[%1].alpha,0,0.5,default, set(plugin[%1].visible,false) );
set(autorotate.enabled,true);
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »rbudnikas« (24. September 2010, 20:16)
perhaps the missing </action> in your code:
Zitat
..the map and doesn't close it.
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<plugin name="map_btn" visible="false" url="newcontrols.png" crop="172|34|29|25" keep="true" align="leftbottom" x="172" y="0" handcursor="true" alpha="0" zorder="1000" onclickA="action(showmap,maps); set(onclick, onclickB() ); set(onhover,showtext(Hide MAP,buttonstyle));" onclickB="action(hidemap,maps); set(onclick, onclickA() ); set(onhover,showtext(Show MAP,buttonstyle));" onclick="onclickA();" onhover="showtext(Show MAP,csmall);" onover="tween(alpha,1,0.1)" onout="tween(alpha,0,0.5)" onloaded="delayedcall(1,set(visible,true));"/> <action name="showmap"> set(plugin[%1].visible,true); tween(plugin[%1].alpha,1); set(autorotate.enabled,true); </action> <action name="hidemap"> tween(plugin[%1].alpha,0,0.5,default, set(plugin[%1].visible,false) ); set(autorotate.enabled,true); </action> |