This one has me confused and I hope one of you geniuses can work out my error.
http://coop.smartvirtualtours.com
I am putting this tour together and want the navigation on the left to slide off the screen as I click the close button but it pauses then just disappears. When I then click the open and close buttons it slides smoothly.
Any thoughts?
The code from the tour.xml page is here:
Code
<!-- Sidebar navigation -->
<plugin name="menubar" handcursor="false" url="hotspots/black-bg.png" devices="!iphone|!ipad" keep="true" zorder="79" align="centerleft" scalechildren="true" />
<plugin name="closemenu" url="hotspots/open.png" keep="true" parent="menubar" zorder="82" visible="true" alpha="0" align="centerleft" edge="centerleft" x="210" y="10" onclick="closemenu();"/>
<plugin name="openmenu" url="hotspots/open.png" keep="true" zorder="84" align="centerleft" edge="centerleft" x="0" y="10" visible="false" onclick="openmenu();"/>
<action name="closemenu">
set(plugin[closemenu].visible,false);
tween(plugin[menubar].x, -280, 1, default, set(plugin[openmenu].visible,true); );
</action>
<action name="openmenu">
set(plugin[openmenu].visible,false);
tween(plugin[menubar].x, 0, 1, default, set(plugin[closemenu].visible,true); );
</action>
Alles anzeigen