Home > Web Front-end > JS Tutorial > javascript picture previous link effect code_image special effects

javascript picture previous link effect code_image special effects

WBOY
Release: 2016-05-16 18:32:36
Original
1420 people have browsed it

Post an implementation method:
Code

Copy code The code is as follows:




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
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template