PrettyPhoto is a jquery-based lightweight lightbox image special effect script. It not only supports images, but also supports videos, flash, YouTube, iframe, and ajax. In addition, prettyPhoto is easy to configure and use, and has good scalability. You can customize prettyPhoto as much as possible. PrettyPhoto is compatible with most mainstream browsers. Some Wordpress image extensions are based on this script.
There is a picture of the truth. Let's take a look at this special effect first!
I. Example of prettyPhoto usage
1. Introduce the jquery core library, prettyPhoto plug-in library, and prettyPhoto style sheet files.
<Html xmlns =" http://www.phpernote.com/jquery-effects/114.html "> <Head> <meta http-equiv =" Content-Type "content =" text/html; charset = UTF-8 "/> <title> jQuery prettyPhoto image display special effect example </title> <! -- Introduce the jquery core library, prettyPhoto plug-in library, and prettyPhoto style sheet file --> <link rel = "stylesheet" href = "css/prettyPhoto.css" type = "text/css" media =" screen "charset =" UTF-8 "/> <script src =" http://www.phpernote.com/js/jquery.min.js "Type =" text/javascript "> </script> <script src =" js/jquery. prettyPhoto. js "type =" text/javascript "> </script>
The above is just a simple example. For more complex usage methods, see the prettyPhoto source code package. This package contains a large number of examples. For your reference, see. Because the file package is large, it is not provided here. If you need to download the prettyPhoto source code package, you can download it from the QQ Group on this site. Group number: 48280945
In addition, the source project address is: http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
Articles you may be interested in
- Image zoom-in display special effects slimbox the most lightweight function the most powerful Jquery Image zoom-in special effects
- JQuery implements several effects of gradient switching of images
- Jquery achieves Image zoom-in and zoom-out effects
- How to Use jquery. lazyload to dynamically delay page image loading
- Solution to incorrect display of transparent PNG images in IE6
- Javascript is a method for obtaining the width and height of an image.
- Php retrieves and outputs a list Of all images in the content
- How php generates image thumbnails