Home › Forums › JavaScript › update code for touchStart event
- This topic is empty.
-
AuthorPosts
-
June 4, 2013 at 4:51 am #45094simmiParticipant
i have following code which is working fine per onClick evevnt of image, how can i update code to call method for touchStart event?
this.defaults =
{
animationSpeed: 50, /* Animation speed in ms */
aspectRatio: 1.964, /* Aspect ratio of the ImageFlow container (width divided by height) */
buttons: false, /* Toggle navigation buttons */
captions: false, /* Toggle captions */
circular: true, /* Toggle circular rotation */
imageCursor: ‘default’, /* Cursor type for all images – default is ‘default’ */
ImageFlowID: ‘imageflow’, /* Default id of the ImageFlow container */
imageFocusM: 1.0, /* Multiplicator for the focussed image size in percent */
imageFocusMax: 3, /* Max number of images on each side of the focussed one */
imagePath: ”, /* Path to the images relative to the reflect_.php script */
imageScaling: true, /* Toggle image scaling */
imagesHeight: 0.67, /* Height of the images div container in percent */
imagesM: 1.0, /* Multiplicator for all images in percent */
onClick: function() { /*document.location = this.url;*/ flipIt(this) }, /* Onclick behaviour */June 4, 2013 at 5:41 am #137155simmiParticipanti tried ,
onClick, onTouch: function() { /*document.location = this.url;/
but images are not displayed on screen .. seems it doesn’t allow to define 2 events
June 4, 2013 at 5:51 am #137574simmiParticipant‘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;
}
}June 4, 2013 at 6:31 am #137582simmiParticipanti mean instead of image.onclick what should i write ??? image.ontouch ??
-
AuthorPosts
- The forum ‘JavaScript’ is closed to new topics and replies.