javascriptlightbox

How to show first not last image in Lightbox?


Hello i use lightbox like this:

<!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>

Live demo: http://polishwords.com.pl/grono/fb_dragchallenge2/test.html

And when i click any image it shows gallery but with image 3/3 not image 1/3. How to show first image not the last one?

I use this: http://lokeshdhakar.com/projects/lightbox2/


Solution

  • It's a bug in the newest version of Lightbox from the link above. I've changed to other software.