-1

您好,我使用这样的灯箱:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
    <script src="lightbox/js/lightbox.js"></script>
    <link href="lightbox/css/lightbox.css" rel="stylesheet" />
    <title></title>
    </head>

<body>

<a href='http://polishwords.com.pl/images/logo179x24.png' rel="lightbox[roadtrip]"><img src="http://polishwords.com.pl/images/logo179x24.png"  /></a>      
<a href='http://polishwords.com.pl/images/logo179x24.png' rel="lightbox[roadtrip]"><img src="http://polishwords.com.pl/images/logo179x24.png"  /></a>
<a href='http://polishwords.com.pl/images/logo179x24.png' rel="lightbox[roadtrip]"><img src="http://polishwords.com.pl/images/logo179x24.png"  /></a>


</body>

</html>

现场演示: http: //polishwords.com.pl/grono/fb_dragchallenge2/test.html

当我单击任何图像时,它会显示图库,但图像 3/3 不是图像 1/3。如何显示第一张图片而不是最后一张?

我用这个: http: //lokeshdhakar.com/projects/lightbox2/

4

3 回答 3

0

尝试将它们放在这样的组中:

<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
于 2012-09-05T12:42:33.590 回答
0

这是上面链接中最新版本的 Lightbox 中的一个错误。我换了其他软件。

于 2012-09-08T12:09:49.223 回答
0

Lightbox.prototype.start函数(lightbox.js)中存在错误。将图片添加到相册后,变量imageNumber仍然包含最后一张图片的编号。

在函数调用之前更改imageNumber为:0this.changeImage

imageNumber = 0; // insert this line before 
this.changeImage(imageNumber);
于 2016-11-09T08:04:39.277 回答