JS achieves 360-degree rotation of the panorama Effect
<P id = "p1" style = "cursor: hand; position: absolute; width: 500; height: 190; overflow: hidden; border: 1 solid red "onmouseover =" clearTimeout (scrl); "onmousemove =" getpos () "onmouseout =" change (1); "> </p> script var scrl, direction = "right"; var x, xold, xdiff, I = 1; function change (start) {if (direction = "right ") {if (p1.scrollTop + 190 <p1.scrollHeight) {p1.scrollTop + = 190;} else {p1.scrollTop = 0 ;}} else {if (p1.scrollTop-190> 0) {p1.scrollTop-= 190;} else {p1.scrollTop = p1.scrollHeight;} if (start) scrl = setTimeout ("change (1)", 100); else clearTimeout (scrl );} function getpos () {x = event. clientX; xdiff = x-xold; xold = x; if (xdiff> 0) direction = "right"; if (xdiff <0) direction = "left "; change (0);} script
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]