Hi Everyone!
I'm trying to create an Info Button that calls the intro image when it clicks, just in case the viewers need how to navigate the Vtour.
I've found this subject on this thread below, I've tried many times but still no luck. It might be something wrong with my code.
https://krpano.com/forum/wbb/inde…d&threadID=5717
Here's the code I wrote:
On main XML:
Code
<events name="panoevents" onloadcomplete="delayedcall(introimage, 4.0, if(plugin[introimage], hideintroimage() ); ); set(events[panoevents].onloadcomplete,null);"
onremovepano="stopdelayedcall(introimage);" />
<plugin name="introimage"
url="introimage.png" keep="true"
align="midtop"
onloaded="set(alpha,0); tween(alpha,1.0);"
onclick="hideintroimage();"
/>
<action name="hideintroimage">
if(plugin[introimage].enabled,
set(plugin[introimage].enabled,false);
tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage));
);
</action>
<action name="showintroimage">
set(plugin[introimage].enabled, true);
tween(plugin[intro].alpha,1);
</action>
Display More
And on the vtourskin.XML:
Code
<layer name="skin_btn_info" style="skin_glow" url="red_button/information_red.png" keep="true" align="rightbottom" x="310" y="7" scale="0.6" alpha="1.0" onhover="showtext(Navigation Info, hovertext);" onclick="showintroimage();" />
<layer name="skin_btn_home" style="skin_glow" url="red_button/home_red.png" align="rightbottom" x="350" y="7.7" scale="0.6" alpha="1.0" onhover="showtext(Go to First Scene, hovertext);" onclick="loadscene(scene_BOULEVARD, null, MERGE, ZOOMBLEND(1,2)); " />
I'm sorry I still can't mention my website as it is still under construction.
Hope somebody can give some solutions for this info button problem.
Best Regards,
Don