Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript update code for touchStart event Re: update code for touchStart event

#137574
simmi
Participant

‘O ‘ was capital so it was not working :P,,thnks … but for following onclick what should i do?

switch ( image.i == my.imageID )
{
case false:
image.onclick = function() {

$(“#front”).html(imgFront[n]);
my.glideTo(this.i);
};

break;

default:
this.zIndex = my.zIndex + 1;

if(image.url !== ”)
{
image.onclick = my.onClick;
}
break;
}
image.style.zIndex = my.zIndex;
}
}