Wrote a jquery. imagesview plug-in that supports image dragging and scaling similar to ACDSee.

Source: Internet
Author: User

During project creation, the customer is always concerned about the front-end interface. This is not the case of another difficult customer. It is required to view high-resolution images after opening the thumbnail at the front end, and it is better to be as convenient as ACDSee. It supports drag and scale-in and scale-out.

I have seen this effect in a column in Sina. The impact is like flash. I haven't touched flash for many years. I am not very familiar with the current Action Script, so I came up with jquery to achieve this. jquery's thickbox supports Image Browsing, but it is not the customer's result. After half a day of Google's search, I didn't find a useful Js.CodeSo I had to write it myself.

First look at the effect (Click the image below and connect to it.)


Text connections are also supported.

Supports IE 7 +, Firefox 1.5 + (PC, Mac), safari2 +, opera9 +, chrome0.3 +

I tested the results in Google Chrome, IE7, and firefox3.0 ..

It took me a lot of time to show you this effect, mainly because this blog does not support defining CSS style files in the content.

In addition, cnblogs background editing does not support chrome very well, so we have to launch n browsers to go back and forth ~~

If you cannot see the effect, you have to look at the figure below:

Related Files (these files are included in the last attachment of the article ):

Bytes ------------------------------------------------------------------------------------------------ Imagesview.css -- Style File

Imagesview. js -- Imageview JS File

Toolsico.gif -- Button icon

Loadinganimation.gif -- load an animation

Jquery. js -- For the jquery script library, use jquery 1.2.6 or later. Otherwise, there is a problem with dragging.

Usage:

Bytes ------------------------------------------------------------------------------------------------

Reference imagesview.css, imagesview. JS, and jquery. js in the page header (two GIF image files and CSS files are placed in the same directory)

Image connection: <a href = "images/rs4.jpg" class = "imagesview" Title = "imageview code by Jinks. zhang "> </a>

Text connection: <a href = "images/rs4.jpg" class = "imagesview" Title = "imageview code by Jinks. Zhang"> supports text connections. </a>

Among them, class = "imagesview" is required, Title = ".. "The title is not defined here.

Download is provided in all attachment files:

Attachment: jquery.imagesview.rar

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.