Download script
½ºÅ©¸³Æ® °ü·Ã ÀÚ·á´Â ÇØ´çÆÄÀÏÀ» ´Ù¿î¹ÞÀ¸½Ã¸é ³»¿ëÀÌ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.
Setup
½æ¸ÞÀÏÀ̹ÌÁö Ãß°¡Çϱâ
<BODY> ű׿¡¼ ¾Æ·¡ <DIV> ű׾ȿ¡ ½½¶óÀ̵å¼î °ü·Ã À̹ÌÁö¸¦ Ãß°¡ÇÕ´Ï´Ù.
<div id="theImages"><DIV>
HTML Äڵ嵵 ÇÔ²² ³Ö½À´Ï´Ù.
<a href="#" onclick="showPreview('images/image1_big.jpg','1');return false"><img src="images/image1.jpg"></a>
image1.jpg is the small image, while image1_big.jpg is the larger version of image1.jpg, i.e. the image that is loaded into the preview pane. Also notice the second parameter('1') which is sent to the showPreview function. This variable indicates which image caption we want to show(1 = first, 2 = second ...).
À̹ÌÁöÁ¦¸ñ Ãß°¡Çϱâ
<DIV>ű׿¡ ½æ³×ÀÏ À̹ÌÁö¿Í °ü·ÃµÈ ¿øº»À̹ÌÁöÀÇ Á¦¸ñÀ» ³Ö½À´Ï´Ù. Example:
<div class="imageCaption">This is the caption of image number 1</div>
Initial large image
When someone opens the page, you can have a default image showing in the preview pane. This is done by adding a <img> into the "previewPane" div. Example:
<div id="previewPane">
<img src="images/image1_big.jpg">
</div>
°¶·¯¸® À̹ÌÁö Å©±â ¹Ù²Ù±â
À̹ÌÁöÅ©±â º¯°æ°ú °ü·ÃµÈ ÆÄÀÏÀº css/image-slideshow-vertical.css ÆÄÀÏÀ» Âü°íÇÏ½Ã¸é µË´Ï´Ù.
Javascript variables
There are two Javascript variables available. The first one indicates the size of your image arrows(up and down). You have to change this variable in case you're using other images with a different size.
var arrowImageHeight = 35; // Height of arrow image in pixels;
Set this variable equal to the height of your arrow images(pixels)
The next variable indicates if you want to show a "Please wait" message while the images is being loaded.
var displayWaitMessage = true;
You can modify the text in this wait message by changing the following HTML code:
<span id="waitMessage">Loading image. Please wait</span>