PDA

View Full Version : Preview: howto implement in onClick event


Helge
01-04-2008, 08:00 PM
Hi,
I am trying to implement the preview function on the onCklick event of the hotspot.
The hotspot is a hotspot of a multinode tour.

I am calling the new pano with the onClick asshown below:

<hotspots>
<global onload="alpha=0; alpha=1,500">

<spot
....
onClick="loadPano(panoName=mitte&pan=33.0)"
....
/>


Now I want to load a preview as shown in the FPP tutorial (see next code snippet)
prv_mitte.jpg is the low res image

onClick="loadPreview();" loadPreview="loadPano(?panoName=prv_eingang,300);onTransitionEn d=loadMain();pano.qualityStatic=low "loadMain="loadPano(?panoName=eingang,600); onTransitionEnd= "

That code is not working. There should be problem with the quotation marks.

Any help?

Helge

zleifr
01-05-2008, 10:49 PM
Can you tell us what it is doing? Also, you might want to get rid of the ?, in my experience it can cause the leash=lock parameter not to work and the preview panorama can end up out of sync with the hi-res one if the user moves the preview pano...

Helge
01-07-2008, 06:36 PM
Can you tell us what it is doing?

Only the low res pano is shown. The high res pano is not loading.
Helge