JS drag the map zoom
2016-08-23
0 0 0
no vote
Other
Earn points
JS drag the map zoom
Function initDrag (E) {
Var oDragHandle e.target: event.srcElement = Nn6?;
Isdrag = true;
X e.clientX: event.clientX = Nn6?;
Y e.clientY: event.clientY = Nn6?;
St = vv.scrollTop;
SL = vv.scrollLeft;
Document.onmousemove = moveMouse;
Return false;
}
Pp.onmousedown=initDrag;
Pp.onmouseup=new Function ("isdrag=false");
Function (bigit) {
Pp.style.height = pp.height* (1+rate + PX) "";
Pp.style.width = pp.width* (1+rate + PX) "";
}
Function (smallit) {
Pp.style.height = pp.height* (1-rate + PX) "";
Pp.style.width = pp.width* (1-rate + PX) "";
}
Function (realsize) {
Var newImg = new (Image);
NewImg.src = pp.src;
Pp.style.height = "newImg.height+ px";
Pp.style.width = "newImg.width+ px";
}
Function initDrag (E) {
Var oDragHandle e.target: event.srcElement = Nn6?;
Isdrag = true;
X e.clientX: event.clientX = Nn6?;
Y e.clientY: event.clientY = Nn6?;
St = vv.scrollTop;
SL = vv.scrollLeft;
Document.onmousemove = moveMouse;
Return false;
}
Pp.onmousedown=initDrag;
Pp.onmouseup=new Function ("isdrag=false");
Function (bigit) {
Pp.style.height = pp.height* (1+rate + PX) "";
Pp.style.width = pp.width* (1+rate + PX) "";
}
Function (smallit) {
Pp.style.height = pp.height* (1-rate + PX) "";
Pp.style.width = pp.width* (1-rate + PX) "";
}
Function (realsize) {
Var newImg = new (Image);
NewImg.src = pp.src;
Pp.style.height = "newImg.height+ px";
Pp.style.width = "newImg.width+ px";
}
javascript
js
地图
缩放
Related Source Codes
WeChat mini program development
0
0
no vote
Image cropping and compression processing on mobil
0
0
no vote
Classic Interview Questions for Digital City Front
0
0
no vote
3D building large screen display
0
0
no vote
six million six hundred and sixty-six thousand six
0
0
no vote
No comment