PDA

View Full Version : How to show a preview image while loading?


FMX
02-23-2009, 07:24 AM
My site (http://www.fometrix.nl) initially starts with a black screen and the loadbutton.

I would like it to start with an image of the first loading pano so the visitor has an image to watch from the start. Besides this an introductionary text must be shown.

I have been messing around but keep struggling with this. Anyone a solution and/or sample on how to achieve this?

siesfor
02-26-2009, 01:37 AM
When you say "an image of the first loading pano", I take that to mean a static image of the pano, rather than a preview version of the pano, correct?

If so, what you do, is set up your static image and text as you would any hotspot, then add [ onLoad="loadPano(panoName=***)" or onLoad="globalPanoFunction()" depending on which way you prefer ] to one of your opening hotspots (whichever one comes last in your xml since I'm assuming they're loaded in order), and then, once that hotspot loads, it'll begin loading the pano.

Actually, looking at your pano, didn't you used to have a map for the tower that loaded in the beginning? Same idea, just using the loading of the hotspot image to trigger the loading of the pano.