You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Saturday, October 4th 2014, 12:07am

hotspot onclick call

Hi, can someone help me with this. I am trying to apply an onclick call to a hotspot but failing miserably. I can do it no problem to a layer like so

<layer name="skin_logo" url="teamstarlogosmall.jpg" scale="1.00" align="lefttop" onclick="js(open_win());" />

in html file

function open_win()

But in a hotspot I have troubles ie:

<hotspot name="spot1A" style="skin_hotspotstyle" ath="34.371" atv="7.563" onclick="js(lightboxme('

id=291','width:760 height:520 sameBox:true'));"/>

in html file head

<link type="text/css" rel="stylesheet" href="" />
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>

function lightboxme(url, loptions) {



function rescroll() {

function lightbox_noscroll(url, loptions) {


function resizefb() {



//this one is to check if it´s not working that the call is being made to the right place

function checkcall(){

alert('got it!');


Hopefully something pretty basic??

Many thanks

Alexey Tkachenko


Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message


Saturday, October 4th 2014, 8:55am

Yep, sure it's basic)

Your hotspot has style assigned to it (called "skin_hotspotstyle"). And all parameters stated inside the style always override the ones stated inside the hotspot/layer. So you can either modify "onclick" event inside the "skin_hotspotstyle" (if this event is global for all hotspots) or remove the style from a particular hotspot and write all parameters inside it the way you need them (if the event needs to be applied only inside of only one hotspot).

Hope I was clear in my explanation *smile*