Home › Forums › JavaScript › update code for touchStart event › Re: update code for touchStart event
June 4, 2013 at 5:51 am
#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;
}
}