Lightbox 2
페이지 정보
본문
How to Use
Part 1 - Setup
- Lightbox 2 uses the Prototype Framework and Scriptaculous Effects Library. You will need to include these three Javascript files in your header (in this order).
- Include the Lightbox CSS file (or append your active stylesheet with the Lightbox styles).
- Check the CSS and make sure the referenced
prev.gif
andnext.gif
files are in the right location. Also, make sure theloading.gif
andclose.gif
files as referenced near the top of thelightbox.js
file are in the right location.
Part 2 - Activate
- Add a
rel="lightbox"
attribute to any link tag to activate the lightbox. For example:
Optional: Use theimage #1
title
attribute if you want to show a caption. - If you have a set of related images that you would like to group, follow step one but additionally include a group name between square brackets in the rel attribute. For example:
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!image #1
image #2
image #3
Download
Changelog
- v2.04 - 3/9/08
- NEW - Upgraded Prototype from v1.4 to v1.6.0.2
- NEW - Moved label text into configuration for easier localization
- UPDATED - Code cleaned up. Respect for the global namespace and native javascript objects.
- FIXED - Caption displays as "null" when viewing an uncaptioned image after viewing a captioned image.
- FIXED - Clicking 'close' button shifts layout as link focus' dotted line appears.
- v2.03.3 - 5/21/07 - Support for horizontally scrolling pages. Added updateImageList method for ajax'y pages.
- v2.03.2 - 4/30/07 - Fixed animated gif support in IE/Opera.
- v2.03.1 - 4/18/07 - Fixed embed hiding. Overlay opacity var added to config. Image sets w/Imagemaps fix. Clearfix removed.
- v2.03 - 4/10/07 - Improved keyboard navigation. Animation off toggle. Hides Flash movies under overlay. Imagemap support. Valid CSS.
- v2.02 - Fixed layout issues caused by multiline captions. Added keyboard navigation.
- v2.01 - Centering in IE6 (any DOCTYPE) fixed. Smoothed out resize transition.
관련링크
- http://www.lokeshdhakar.com/projects/lightbox2/ CLICKS : 22
- http://www.lokeshdhakar.com/projects/lightbox2/ CLICKS : 22
- 이전글팝업창 중앙으로 위치 08.12.19
- 다음글최근게시물 중 카테고리 추출하기 08.07.17
댓글목록
등록된 댓글이 없습니다.