<!DOCTYPE HTML><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <title>Document</title> <Metacontent= "Width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"name= "Viewport" /> <Scripttype= "Text/javascript"> functionA () {varMDiv=document.getElementById ("MDiv"); varMdiv2=document.getElementById ("Mdiv2"); varMdiv3=document.getElementById ("Mdiv3"); varm=Math, Istouchpad= (/Hp-tablet/gi). Test (navigator.appversion), Hastouch= 'Ontouchstart' inchwindow&& !Istouchpad, Start_ev=Hastouch? 'Touchstart' : 'MouseDown', Move_ev=Hastouch? 'Touchmove' : 'MouseMove', End_ev=Hastouch? 'Touchend' : 'MouseUp', Cancel_ev=Hastouch? 'Touchcancel' : 'MouseUp'; Mdiv.addeventlistener (Move_ev,function(e) {var Point=Hastouch?e.touches[0]: E; Mdiv3.innerhtml= "X:" +Point.pagex+ "; Y:" +Point.pagey+ ""; }, false); Mdiv.addeventlistener (Start_ev,function(e) {var Point=Hastouch?e.touches[0]: E; Mdiv2.innerhtml= "BeginX:" +Point.pagex+ "; BeginY:" +Point.pagey+ "<br/>"; }, false); Mdiv.addeventlistener (End_ev,function(e) {var Point=Hastouch?e.changedtouches[0]: E; Mdiv2.innerhtml+=( "EndX:" +Point.pagex+ "; EndY:" +Point.pagey+ ""); }, false); } </Script></Head><Bodyonload= "A ()"><Divstyle= "Border:solid 1px #000000; background: #ffffff; width:100%; height:299px; Margin:auto"ID= "MDiv"> <DivID= "Mdiv3"> </Div> <DivID= "Mdiv2"></Div></Div></Body></HTML>
WAP Phone side Press to release sliding events