PDA

View Full Version : What am I doing wrong?


bshunt29@hotmail.com
06-28-2009, 02:56 AM
I have two hotspots. When I click on the HD button, I want the low_def buttons visible, and the high_def buttons invisible. Here is my code:



<spot id="high_res" alt="Switch To High Definition" altYOffset="15"
altXOffset="15" salign="LT" align="TC" static="1" staticX="90" staticY="10"
url="hd.png" linked="6f492_1000" blockMouse="1" depth="104"
onClick="HdOn; pano.leash=lock; loadPano(panoName=6f492_1000;)"
HdOn="high_def1.visible=1;low_def1.visible=0;" />

<spot id="low_res" alt="Switch To Low Definition" altYOffset="15"
altXOffset="15" salign="LT" align="TC" static="1" staticX="90" staticY="10"
url="ld.png" linked="6f492_1000" blockMouse="1" depth="104"
onClick="HdOff; pano.leash=lock; loadPano(panoName=6f492_1000;)"
HdOff="low_def1.visible=1;high_def1.visible=0;" />

<spot id="low_def1" visible="1" smartScale="1" salign="LB" align="BL"
static="1" staticX="229" staticY="-5" url="low_def"
onClick="global.low_def1();" scale="0.5" />

<spot id="high_def1" visible="0" smartScale="1" salign="LB" align="BL"
static="1" staticX="229" staticY="-5" url="high_def"
onClick="global.high_def1();" scale="0.5" />

christophe
06-28-2009, 07:03 AM
i think you forgot to put the extension in url :

url="low_def"
url="high_def"

maybe .jpg or .png is missing.

Regards

Christophe

360VT.co.uk
06-28-2009, 11:38 PM
You’ve got four hotspots there!!!

Me I like to keep it simple, why have HdOn and HdOff, when you can switch the visibility at the onClick,

In the first two Try
onClick="high_def1.visible=1; low_def1.visible=0; pano.leash=lock; loadPano(panoName=6f492_1000;)"

As for the second two, as christope says the url to the image is not complete and will not show an image at all.

And what does the global.high_def1() do??