PDA

View Full Version : Dynamic text


xt-ric
06-11-2007, 03:11 PM
Hi,
I'm a new french customer and this panorama engine is very great.

Just a question :

how can i load text dynamically ? (I would like to load little text in a box when the mouse rolls over a hotspot)

Thanks a lot
Eric

Denis
06-11-2007, 04:48 PM
You can do it with Actionscript if you know Actionscript.
But the most simple variant is to make an additional hotspot (image with text) and change its visibility on over/out. Like this:

<spot id="image" url="image.jpg" onOver="tip.visible=1" onOut="tip.visible=0" pan="0" tilt="0" />
<spot id="tip" url="text.png" visible="0" pan="5" tilt="5" />

You can use some effect for "text" appearance using, say, alpha or blur parameter. :)
Read more about it in Hotspots tutorial.

kevin
06-12-2007, 04:01 AM
Great question Eric,

I was thinking this too.

Denis (or others) can you see my error here? I have a distorted image that I want to do a mouse over tip for:

<box id="floorplan" linked="images/Living_cube" url="images/floorplan.png"
pan="91.00"
tilt="-36"
distance="2.43"
orientation="right"
rotationX="-172"
rotationY="-96"
rotationZ="180.00"
depth="-170"
scale="1"
saturation="-0.5"

onOver="maptip.visible=1" onOut="maptip.visible=0"

onClick="openMe()"
openMe="hidePic(); global.hidePic=pic1.closeMe; goUp(); scale=0.9,700; onClick=closeMe;"

closeMe="global.hidePic=; goDown();
pan=91,700;
tilt=-36,700;
rotationZ=180,700;
rotationX=-172,700;
rotationY=-96,700;
distance=2.43,700;
scale=1,700;
onClick=openMe;"



/>

<spot id="maptip" url="images/floorplan_over.png" visible="0" pan="5" tilt="5" />

Maybe I am trying to do too much at once? Not sure.