Gandalf2003
03-19-2009, 08:50 PM
Hi guys (& girls ?),
I'm still learning FPP and I need an advice to achieve the following goal :
I have one picture in a box. I defined "goUp" and "goDown" properties in the "global section".
When I click on the box, the picture shows correctly and disappear if I click on it again.
Now I'm trying obtain the same result with a spot placed on that box. When I click the spot, the spot should disappear and the image should pop-up with the same effect.
I found other threads speaking about spots calling other spots but nothing about boxes ...
If someone got an idea, here's my code :
<box id="tableau" linked="images/egypt" url="medias/tableau.jpg" pan="141" tilt="34" scale="0.52" rotationX="-26" rotationY="9" rotationZ="-4" alpha="0" depth="70"
onClick="openMe()" openMe="hidePic(); global.hidePic=tableau.closeMe; goUp(); onClick=closeMe;"
closeMe="global.hidePic=; goDown(); pan=141,1000; tilt=34,1000; scale=0.52,1000; onClick=openMe;"
/>
<spot id="tab-button" pan="142" tilt="20" url="nav/info.png" linked="images/egypt" alpha="0.7" depth="80" scaleable="0" glowColor="#ffffff"
onOver="
alpha=1,100;
external.autorotator.disabled=1;
glow=2,100;
glowBlur=35,100;
"
onOut="
alpha=0.7,100;
external.autorotator.disabled=0;
glow=0,100;
glowBlur=0,100;
"
/>
I'm still learning FPP and I need an advice to achieve the following goal :
I have one picture in a box. I defined "goUp" and "goDown" properties in the "global section".
When I click on the box, the picture shows correctly and disappear if I click on it again.
Now I'm trying obtain the same result with a spot placed on that box. When I click the spot, the spot should disappear and the image should pop-up with the same effect.
I found other threads speaking about spots calling other spots but nothing about boxes ...
If someone got an idea, here's my code :
<box id="tableau" linked="images/egypt" url="medias/tableau.jpg" pan="141" tilt="34" scale="0.52" rotationX="-26" rotationY="9" rotationZ="-4" alpha="0" depth="70"
onClick="openMe()" openMe="hidePic(); global.hidePic=tableau.closeMe; goUp(); onClick=closeMe;"
closeMe="global.hidePic=; goDown(); pan=141,1000; tilt=34,1000; scale=0.52,1000; onClick=openMe;"
/>
<spot id="tab-button" pan="142" tilt="20" url="nav/info.png" linked="images/egypt" alpha="0.7" depth="80" scaleable="0" glowColor="#ffffff"
onOver="
alpha=1,100;
external.autorotator.disabled=1;
glow=2,100;
glowBlur=35,100;
"
onOut="
alpha=0.7,100;
external.autorotator.disabled=0;
glow=0,100;
glowBlur=0,100;
"
/>