473,386 Members | 1,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to enable next and previous images for lightbox 0.5 JS library?

ilya Kraft
134 100+
Ok, I have a portfolio page on my website and i added lightbox to view pictures of it, everything works fine, but when i press "next" or "previous" buttons it doesn't load next image.

http://idaderko.netai.net/portfolio.html

here is my portfolio page, so you can understand what i mean, click on any image (not first 2 those are links to websites).

here is what i putted for lightbox to display:

Expand|Select|Wrap|Line Numbers
  1. <div id="gallery"> 
  2.                  <ul class="gallery"> 
  3.                    <li> 
  4.                     <a href="css/images/Ney_York_Colours_BW.jpg" class="thumb"><span><img src="css/images/city_thumbian.jpg" 
  5.                     alt="colour city" /></span></a> 
  6.                     <h2><a href="#">City</a></h2> 
  7.                     </li> 
  8.                    <li> 
  9.                     <a href="css/images/Shoe_painting.jpg" class="thumb"><span><img src="css/images/shoe_thumbian.jpg" 
  10.                     alt="shoe paint effect" /></span></a> 
  11.                     <h2><a href="#">Paint Shoe</a></h2> 
  12.                    </li> 
  13.                    <li> 
  14.                     <a href="css/images/orange_bubble_aura.jpg" class="thumb"><span><img src="css/images/orange_buuble_thumbian.jpg"
  15.                     alt="alpha effect" /></span></a> 
  16.                     <h2><a href="#">Aura effect</a></h2> 
  17.                    </li> 
  18.                    <li> 
  19.                     <a href="css/images/space_strokes.jpg" class="thumb"><span><img src="css/images/space_thumbian.jpg" 
  20.                     alt="space lines" /></span></a> 
  21.                     <h2><a href="#">Space</a></h2> 
  22.                    </li> 
  23.                    <li> 
  24.                     <a href="css/images/gorodlv_logo.jpg" class="thumb"><span><img src="css/images/gorod_logo_thumbian.jpg" 
  25.                     alt="gorod.lv"/></span></a> 
  26.                     <h2><a href="#">Gorod logo</a></h2> 
  27.                    </li> 
  28.                    <li> 
  29.                     <a href="css/images/Untitled-2.jpg" class="thumb"><span><img src="css/images/river_flow_logo.jpg" 
  30.                     alt="iiver flow"/></span></a> 
  31.                    <h2><a href="#">River Flow logo</a></h2> 
  32.                   </li> 
  33.                   <li> 
  34.                    <a href="css/images/Ironfly_logo.jpg" class="thumb"><span><img src="css/images/iron_fly_thumbian.jpg" 
  35.                    alt="ron fly" /></span></a> 
  36.                    <h2><a href="#">Iron Fly logo</a></h2> 
  37.                   </li> 
  38.                </ul> 
  39.            </div> 
  40.  
Thank you.
Feb 7 '11 #1

✓ answered by acoder

You have two links for each picture - one for the picture and the other for the text, and you've added lightBox to each link, so either remove the link or give it a different class to apply it to the image only.

1 2232
acoder
16,027 Expert Mod 8TB
You have two links for each picture - one for the picture and the other for the text, and you've added lightBox to each link, so either remove the link or give it a different class to apply it to the image only.
Feb 10 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: NoWhereMan | last post by:
Hi everybody, first of all, let me say I'm not really a javascript (more a php) guy. Now, I'm trying to integrate lightbox V1 into my project http://flatpress.sf.net I chose V1 because it...
3
by: Bouzy | last post by:
I have been trying to put lightbox on my site I am making, but its not working. I have searched on forums and can't find exactly the same problem. When I click on my thumnail to open it abosolutly...
1
by: daniel | last post by:
Hello, I have limited understanding of js (css/html is more me) and when I run into complicated problems I am left undone. The person I normally call upon is on holiday so I was wondering if I...
1
by: metaphysics | last post by:
I'm attempting to create a slideshow with similar functionality as Lightbox 2. I don't want anything to pop up like the Lightbox does, I just want the slideshow to have next/previous buttons (like...
3
by: truezplaya | last post by:
Hey I am currently creating a mash up that displays the location of some football grounds using a geoRSS feed. I was hoping to add lightbox to my mash up so i can display photos. The...
8
by: vanald04 | last post by:
Alright, I racked my brain all last night and can't figure out what I'm doing wrong. I've copied: <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript"...
3
omerbutt
by: omerbutt | last post by:
hi there i am trying to run the lightbox and a slider on a single page the light box is working allrigh but when i try to include the slider in the same page it generates error because i have to...
2
by: jrod11 | last post by:
I recently found a gallery (http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6727&lngWId=4). The image in the gallery when clicked on will open the larger image in the same...
1
by: kobiadato1603 | last post by:
Hi all. First time here. I have a problem in my site when i view it in IE im not sure why and what to do and maybe you can help me. The site name is like cut in half in IE My site is...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.