2007. 7. 13. 14:57

LightBox 2 WordPress Plugin(라이트박스 플러그인)

Lightbox 2 Wordpress Plugin
먼저, Lightbox 2 란게 무엇인지 궁금하신분은 아래의 그림을 클릭해보시라..^^
test2.jpg

^^
이기능을 구현하기 위해 아래의 절차를 밝으면 WordPress에서 누구나 구현할수 있다.
자세한 설명은 아래를 참고.

Lightbox 2 Wordpress plugin used to overlay images on the current page into neat Javascript-powered overlay popups.

This plugin includes the new Lightbox JS v2.2 javascript written by Lokesh Dhakar and got transformed into a Wordpress Plugin by me. Use the title attribute if you want to show a caption.
Click on the images below for an example.

test1.jpg test2.jpg

Installation

  • Upload lightbox.php and lightbox folder to the /wp-content/plugins/ directory (not the entire unzipped folder!).

lightbox-upload.gif

  • Activate the plugin through the ‘Plugins’ menu in WordPress.
  • Add a rel=”lightbox” attribute to any link tag to activate the lightbox, or rel=”lightbox[roadtrip]” for image set.
  • Optional: Use the title attribute if you want to show a caption.

Single example:
<a href=”img1.jpg” rel=”lightbox” title=”my caption”>thumbnail1</a>
Image set example:
<a href=”img1.jpg” rel=”lightbox[roadtrip]”>thumbnail1</a>
<a href=”img2.jpg” rel=”lightbox[roadtrip]”>thumbnail2</a>
<a href=”img3.jpg” rel=”lightbox[roadtrip]”>thumbnail3</a>