View Full Version : Lightbox image viewer 2.03

05-23-2007, 08:48 PM
A little question...
How may I do to 'launch' the Lightbox image viewer 2.03 usign a mapped image?

I have this code, but doesn't run...the image opens in a new window without lightbox...:


<img src="../immagini/foto/moda/0_MainMONNabiti.jpg" width="600" height="788" border="0" usemap="#Map">

<map name="Map">
<area shape="poly" coords="87,31" href="#">
<area shape="poly" coords="93,30,57,84,48,173,69,197,136,168,131,79,109,35" href="../immagini/foto/moda/giaccaLAUREL.jpg" rel="lightbox[acqua]" title="l'acqua, cascate di Foroglio, Val Maggia">


do you could help me?
thx a lot!

05-24-2007, 04:39 AM
That actually is the way to do it. Either you need to escape your apostrophe:

title="l\'acqua, cascate di Foroglio, Val Maggia"

Or, more likely, you haven't installed the script properly. Give us a link to your problem page.

05-24-2007, 06:31 AM
I'm sorry for the bad posting...
the link to my problem is:
the mapped zone is the first jacket on the left top of the big picture.
As You can see, the linked image open in an individual window, and not using the script...
in other pages, like this:
using thumbdails, it works correctly...
thx again

05-24-2007, 07:28 AM
Your post says that you are using lightbox 2.03. However, the script on your server is lightbox 2.02. It doesn't initialize area tags. It only works with anchor links. Download a fresh copy of lightbox v2.03 here:


and install its files over the version 2.02 files that you have (replace the 2.02 files with the 2.03 files).

05-24-2007, 08:22 AM
I have updated the files as you said, but doesn't run... :(
maybe an error on my code...do not know... :(

05-24-2007, 08:47 AM
At least now it is initializing and trying to display. I think the problem you have is:


Since there is only the one, it is looking for the others and not finding them. For a single lightbox effect that is not a part of a group, use only:


That, or add more:


area and/or anchor tags with valid image href's to the page.

The thing is, you cannot use the group syntax if there is only one on the page. Don't try to cheat either, the script automatically eliminates duplicate images.

05-24-2007, 09:05 AM
Now without the group it works!!!
many many thx!!!