Customize image heat zone Effect Based on jquery _ jquery

Source: Internet
Author: User
A few days ago, I received a requirement that China Unicom's online business office often needed special pages for publicity. However, due to the buttons on the special pages and links to various images, the provincial staff had no html Foundation and were not maintained, A large volume of images. You need to develop a backend with a link to a custom image hot zone. So now we can sort and release the link. I hope you can learn it together.

First look:

The plug-in image-maps.js with jquery. http://www.jb51.net/jiaoben/57930.html
The principle is:
The left top right bottom of the movable module in the current hot zone is calculated by dragging.
The coords attribute of the corresponding area is integrated with the above location to implement the hot zone.
The corresponding module code is:

The Code is as follows:












Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.