Hi,
I wanted a black "screen" set to alpha="0.6" as background for my pictures displayed via a "showpic" hotspot.
ex Click on the polygonal hotspot.
It works great so now i'd like to add it in an other pano with 3 pictures. It works only for two of them.
ex Click on the blue camera hotspots.
Here the code :
Code
<hotspot name="pic_Chambre"
keep="false"
visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true"
fillcolor ="0xffffff" fillalpha ="0.00" borderwidth ="1.0" bordercolor ="0xffffff" borderalpha ="0.5"
fillcolorhover="0xffffff" fillalphahover="" borderwidthhover="" bordercolorhover="0xffffff" borderalphahover=""
..................................
onclick="showpic();"
devices="desktop"
editor=""
pic="Chambre"
>
<point ath=" 93.8776" atv=" -3.1168" />
...........................
</hotspot>
<hotspot name="noir"
url="images/noir.png"
visible="false"
edge="center"
ath="0" atv="0"
alpha="0.0"
keep="true"
scale="100"
zorder="1"
devices="desktop|tablet"
/>
<action name="showpic">
<!-- creates a new hotspot and fly it out -->
if(hotspot[get(pic)] === null,
txtadd(picfilename,'%CURRENTXML%/images/pic_',get(pic),'.jpg');
.............................
set(hotspot[noir].visible, true);
tween(hotspot[noir].alpha, 0.7, 0.6);
</action>
<action name="flyout">
set(hotspot[%1].enabled,false);
tween(hotspot[%1].alpha, 0.0, 0.5, default, set(hotspot[%1].visible,false); );
.....................................
tween(hotspot[noir].alpha, 0.0, 1);
delayedcall(1, set(hotspot[noir].visible, false));
</action>
Display More
I can't figure it out!
Any suggestions?
Thanks everybody.
Steph.