Sie sind nicht angemeldet.

1

Mittwoch, 8. September 2010, 02:01

Icon image for different flyout image

Hello krpano friends, I would like to have a camera icon to click on in the pano but have a different image flyout (not the camera icon). Here's the code I am using but it only shows the smaller version of the flyout image:

<style name="flyoutimage"
distorted="true"
backup_rx="0"
backup_ry="0"
backup_rz="0"
backup_scale="0"
backup_zorder="0"
flying="0.0"
flystate="0"
onclick="if(flystate == 0, flyout_by_name(get(name)), flyback_by_name(get(name)) );"
/>

<hotspot name="spot1" style="flyoutimage"
url="stairs.jpg"
zorder="1"
ath="220"
atv="-5"
scale="0.1"

/>

<hotspot name="spot2" style="flyoutimage"
url="kitchen.jpg"
zorder="2"
ath="60"
atv="-10"
scale="0.1"

/>

Thanks!

2

Mittwoch, 8. September 2010, 05:28

I am not familiar with the style tags, so, not sure what is going on here. From what i see, you'll have to change the value of flystate. Not sure if it is possible, but something like

Quellcode

1
2
3
4
5
6
7
8
9
10
11
<style name="flyoutimage"
 distorted="true"
 backup_rx="0"
 backup_ry="0"
 backup_rz="0"
 backup_scale="0"
 backup_zorder="0"
 flying="0.0"
 flystate="0"
 onclick="if(flystate == 0, flyout_by_name(get(name));flystate=1;, flyback_by_name(get(name));flystate=0; );"
 />

3

Mittwoch, 8. September 2010, 11:00

Hi,
Hello krpano friends, I would like to have a camera icon to click on in the pano but have a different image flyout (not the camera icon). Here's the code I am using but it only shows the smaller version of the flyout image:
can you show the full code, also the camera icon code?

best regards,
Klaus