Results 1 to 7 of 7

Thread: Lightbox image viewer 2.03

  1. #1
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Lightbox image viewer 2.03

    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...:

    <p>

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

    </map>
    </p>

    do you could help me?
    thx a lot!
    Yoghi

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That actually is the way to do it. Either you need to escape your apostrophe:

    Code:
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm sorry for the bad posting...
    the link to my problem is:
    http://www.gix-studio.ch/galleries/moda.htm
    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:
    http://www.gix-studio.ch/galleries/saltoostacoli.htm
    using thumbdails, it works correctly...
    thx again
    Yoghi

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    http://www.dynamicdrive.com/dynamici...ghtbox2.03.zip

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have updated the files as you said, but doesn't run...
    maybe an error on my code...do not know...

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    At least now it is initializing and trying to display. I think the problem you have is:

    Code:
    rel="lightbox[moda]"
    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:

    Code:
    rel="lightbox"
    That, or add more:

    Code:
    rel="lightbox[moda]"
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK!
    Now without the group it works!!!
    many many thx!!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •