It’s working fine in all browsers but when I run this in iPhone Safari, it does not work correctly. It’s just a JavaScript code that finds click and drag event. Using click and drag I am changing images. Please click and drag images.
I need some special code for making this work in iPhone Safari.
Mobile webkit doesn’t use mousedown/mouseup events that are the basis for conventional web drag and drop. Instead, mobile webkit uses touch events.
Have a look at this blog post for details:
http://www.sitepen.com/blog/2008/07/10/touching-and-gesturing-on-the-iphone/