CQ-CSER

计算机爱好者

QuickBox

Posted on | 十二月 11, 2009 | No Comments

Overview

QuickBox.js can be dropped into a page and immediately called to initialize the thumbnail images.JUST LIGHT THICKBOX

Requirements

The MooTools framework 1.2+, both Core and More, with the following packages:

Core: Core, Native, Class, Element, and FX Packages.
More: Asset Package.

Usage

Getting Started

QuickBox is very easy to start using. Just link your thumbnails to the full size images, and set the rel attributes to quickbox:

<a href=”/path/to/fullsize.jpg” rel=”quickbox“> <img src=”/path/to/thumbnail.jpg” alt=”Image Description” /> </a>

Then, simply link to the source files (css file in the head) and call the constructor:

<head> <link rel=”stylesheet” type=”text/css” href=”/path/to/quickbox.css” /> </head> <script type=”text/javascript” src=”/path/to/MooToolsCore.js“></script> <script type=”text/javascript” src=”/path/to/MooToolsMore.js“></script> <script type=”text/javascript” src=”/path/to/QuickBox.js“></script> <script type=”text/javascript”> new QuickBox(); </script>

That’s it! You can now click on your thumbnails and they will open the full size images in the same page. Captions for the images will be taken from the alt attribute of the thumbnails, unless you override it by specifying a title attribute in the links.

If things don’t look quite right, double check that the links to the image resources (the close and left/right buttons) aren’t broken.

 

相关文章:

  1. backbox
  2. 26JQUERY-SKILLS
  3. 10 JQUERY 设计技巧
  4. jGrowl
  5. Html注入

评论|Comments

留言|Leave a Reply





  • Archives

  • SUNSHINE

  • About

    本博客采用创作共用版权协议,要求署名、非商业用途和保持一致. 转载本博客内容也遵循“署名-非商业用途-保持一致”的创作共用协议.

    订阅

    Search

    Admin