phberlin
02-09-2008, 10:54 PM
Hello everybody,
I have a coding problem which can surely be solved by the wink of an eye if I only knew what's wrong here :confused:... I'm trying to do a simple thing: Inside the pano, I place a photo as distorted hotspot box; if you click it, the background gets blurred and the photo is enlarged so that it can be viewed better. If you click on it again, the whole thing goes backwards: The photos is rescaled and background gets unblurred.
Well, this works perfectly -- except that it only works once :confused:?! If the photo was clicked at, showed up large, and clicked at again so that everything is again like it was, the hotspot doesn't respond any longer. You still get the "hand cursor" when you hover over the photo, but clicking on it doesn't cause anything any longer..
Where's my mistake? I'd be grateful for every hint since I'm rather new to FPP coding and hope that my problem is a minor issue?
Here's the XML I use:
<?xml version="1.0" ?>
<panorama>
<parameters>
loaderText = %3Ctextformat%3E%3Cfont%20face%3D%27Arial%27%20siz e%3D%2715%27%20color%3D%27%23%240%27%3E%0DDas%20Pa norama%20wird%20geladen%3A%20%09%247%0D%3C%2Ffont% 3E%3C%2Ftextformat%3E
layer_1=hotspots.swf
panoSuffixes=_0.jpg|_1.jpg|_2.jpg|_3.jpg|_4.jpg|_5 .jpg
qualityMotion=low
qualityStatic=best
behaviour=2
sensitivity=100
threshold=0.0000001
friction=0.85
</parameters>
<hotspots>
<global>
<box id="bild_hs" url="bild.jpg" pan="-59.00" tilt="6.00" distance="0.85" depth="0" blendMode="normal"
onClick="zeigBild()"
zeigBild="
pano.blur=14,100
pano.tilt=0,100
pano.pan=-59,100
pano.zoom=0.45,100
bild_hs.scale=2,250
onClick=bildWeg()
"
bildWeg="
bild_hs.scale=1,100
pano.blur=0,100
"
/>
</global>
</hotspots>
</panorama>
Thanks in advance for any suggestion :)
Phberlin
I have a coding problem which can surely be solved by the wink of an eye if I only knew what's wrong here :confused:... I'm trying to do a simple thing: Inside the pano, I place a photo as distorted hotspot box; if you click it, the background gets blurred and the photo is enlarged so that it can be viewed better. If you click on it again, the whole thing goes backwards: The photos is rescaled and background gets unblurred.
Well, this works perfectly -- except that it only works once :confused:?! If the photo was clicked at, showed up large, and clicked at again so that everything is again like it was, the hotspot doesn't respond any longer. You still get the "hand cursor" when you hover over the photo, but clicking on it doesn't cause anything any longer..
Where's my mistake? I'd be grateful for every hint since I'm rather new to FPP coding and hope that my problem is a minor issue?
Here's the XML I use:
<?xml version="1.0" ?>
<panorama>
<parameters>
loaderText = %3Ctextformat%3E%3Cfont%20face%3D%27Arial%27%20siz e%3D%2715%27%20color%3D%27%23%240%27%3E%0DDas%20Pa norama%20wird%20geladen%3A%20%09%247%0D%3C%2Ffont% 3E%3C%2Ftextformat%3E
layer_1=hotspots.swf
panoSuffixes=_0.jpg|_1.jpg|_2.jpg|_3.jpg|_4.jpg|_5 .jpg
qualityMotion=low
qualityStatic=best
behaviour=2
sensitivity=100
threshold=0.0000001
friction=0.85
</parameters>
<hotspots>
<global>
<box id="bild_hs" url="bild.jpg" pan="-59.00" tilt="6.00" distance="0.85" depth="0" blendMode="normal"
onClick="zeigBild()"
zeigBild="
pano.blur=14,100
pano.tilt=0,100
pano.pan=-59,100
pano.zoom=0.45,100
bild_hs.scale=2,250
onClick=bildWeg()
"
bildWeg="
bild_hs.scale=1,100
pano.blur=0,100
"
/>
</global>
</hotspots>
</panorama>
Thanks in advance for any suggestion :)
Phberlin