PDA

View Full Version : Infosreen not showing onClick


surroundimage
09-13-2007, 12:25 PM
I just completed my virtual tour website, and completely new to this. What I am doing wrong? My XML file seems to have the correct line:

<spot id="infoscreen" url="../hotspots/logo_info.png" static="1" visible="0" onClick="visible=0" onOver="" onOut="" />

All other hotspot buttons are showing up in the controller.


http://www.surroundimage.com/panos/xclusive/xclusive.html

Thank you all,
Gabriel
http://www.surroundimage.com

cheathamlane
09-13-2007, 02:17 PM
Hi Gabriel (hello Mesquite!):

Check your "onClick" setting... but not in the code you supplied. :-)

The issue is in the code for your black "i" button.


onClick="infoscreen01.visible+=1; infoscreen02.visible+=1; infoscreen03.visible+=1"


In your XML file, there are no elements named "infoscreen01" (or 02 or 03). You should either rename your infoscreen to "infoscreen01", or change the onClick (in above code) so it's something like:


onClick="infoscreen.visible+=1;"


HTH

surroundimage
09-13-2007, 04:17 PM
Patrick,

Thank you so much for noticing that in the code.

Gabriel