Forums

Forums (http://flashpanoramas.com/forum/index.php)
-   General FPP Discussion (http://flashpanoramas.com/forum/forumdisplay.php?f=7)
-   -   Panorama closeup image close button (http://flashpanoramas.com/forum/showthread.php?t=3327)

el_vene 09-11-2012 03:36 PM

Panorama closeup image close button
 
Hey i've taken a code from another post i've seen, but i'm missing something to be able to make a close button.

<spot id="img_a" alt="Close-up Photo" url="images/dot.swf" pan="172" tilt="-32" alpha="1" depth="20" scale=".4" onOut="scale=.4,400"
onClick="img_b.visible+=1;visible=0" />
<spot id="img_b" url="images/photo.jpg" static="1" depth="30" visible="0" smoothing="0" glow="100" glowColor="#FFFFFF" glowBlur="2"
glowInner="1" shadow="1" shadowDistance="4" shadowAlpha="0.6" />
<spot id="img_c" url="images/close.png" static="1" visible="0" staticX="100" staticY="100"onClick="img_a.visible+=1;visible=0" />

i'm trying to create the close button at the right upper corner as in fancybox
Thanks for your replies

allSaints 09-12-2012 03:20 PM

Hi,

try this:
Code:

<spot id="img_a" alt="Close-up Photo" url="images/dot.swf" pan="172" tilt="-32" alpha="1" depth="20" scale=".4" onOut="scale=.4,400"
onClick="visible=0;img_b.visible=1;img_c.visible=1" />

<spot id="img_b" url="images/photo.jpg" static="1" depth="30" visible="0" smoothing="0" glow="100" glowColor="#FFFFFF" glowBlur="2"
glowInner="1" shadow="1" shadowDistance="4" shadowAlpha="0.6" />

<spot id="img_c" url="images/close.png" static="1" depth="31" visible="0" staticX="100" staticY="100" onClick="img_a.visible=1;img_b.visible=0;visible=0" />

Tommy

el_vene 09-13-2012 04:14 PM

thanks, that worked perfectly

James Donovan 09-19-2012 04:56 PM

Quote:

Originally Posted by allSaints (Post 20303)
Hi,

try this:
Code:

<spot id="img_a" alt="Close-up Photo" url="images/dot.swf" pan="172" tilt="-32" alpha="1" depth="20" scale=".4" onOut="scale=.4,400"
onClick="visible=0;img_b.visible=1;img_c.visible=1" />

<spot id="img_b" url="images/photo.jpg" static="1" depth="30" visible="0" smoothing="0" glow="100" glowColor="#FFFFFF" glowBlur="2"
glowInner="1" shadow="1" shadowDistance="4" shadowAlpha="0.6" />

<spot id="img_c" url="images/close.png" static="1" depth="31" visible="0" staticX="100" staticY="100" onClick="img_a.visible=1;img_b.visible=0;visible=0" />

Tommy


Allsaints this code is really helpful, Being a programmer I can say it will work. Guys you are getting a best solution here. Take benefits of this opportunity.


All times are GMT. The time now is 09:50 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.