Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
求问,如何做图片滑动翻页效果?
图片滑动翻页?是指滑动屏幕,然后根据滑动方向切换图片吗?如果是的话,比较简单的可以先加一个变量,然后触屏开始时记录下触屏时的x坐标,然后触屏结束时,比较结束时的x坐标和初始记录的x坐标谁大谁小,就能判定玩家是左滑动还是右滑动了,这是左右滑动的情况,上下滑动的话就改成比较y坐标就好