Post an implementation method:
Code
Untitled page < a href="#" >
Note: 1. Jquery needs to be called.
2. Here we use a speculative method to get the position of the mouse on the picture. Set the position of the picture: relative
Directly use var positionX=e.originalEvent.x||e.originalEvent.layerX||0; Get.
3. For convenience, add left="http://www.google.cn" right="http://www.baidu.cn" directly to the picture as its previous and next link addresses. Remember to attach
.htm
Package download address
http://www.jb51.net/jiaoben/25129.html
Related articles:
clientX, pages >
JQuery implementation code for clicking the image to jump to the previous or next picture