Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2012, 03:36 PM
el_vene el_vene is offline
Junior Member
 
Join Date: Sep 2012
Posts: 8
Downloads: 0
Uploads: 0
Default 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
Reply With Quote
  #2  
Old 09-12-2012, 03:20 PM
allSaints's Avatar
allSaints allSaints is offline
Senior Member
 
Join Date: Aug 2008
Location: Stockholm, Sweden
Posts: 945
Downloads: 0
Uploads: 0
Default

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
Reply With Quote
  #3  
Old 09-13-2012, 04:14 PM
el_vene el_vene is offline
Junior Member
 
Join Date: Sep 2012
Posts: 8
Downloads: 0
Uploads: 0
Default

thanks, that worked perfectly
Reply With Quote
  #4  
Old 09-19-2012, 04:56 PM
James Donovan James Donovan is offline
Junior Member
 
Join Date: Sep 2012
Posts: 5
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by allSaints View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:39 PM.


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