Results 1 to 3 of 3

Thread: problems with lightbox

  1. #1
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default problems with lightbox

    i'm having some trouble with the lightbox image viewer javascript. it basically is working correctly, but it's messing up my other website items. i have a banner image at the top of my page, and when i click on my images and they expand in the viewer, it rearranges the background and my banner disappears.

    www.oliverartist.com

    i can copy and paste code if anyone is able to help and needs it for reference.
    any ideas anyone?

    thanks for any help!
    oliver

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    Here's your problem:
    Code:
      <td width="735" valign="top"><div align="center" id="caption">
        <p><br>
           <img src="astro_squid_banner.jpg" alt="" name="pic" width="684" height="288" border="0"><img src="oliver_title.jpg" width="684" height="31" align="top"></p>
                </div>
      </td>
    Lightbox is putting the image's title there because it's the first element in the document with an id of "caption" (and you don't see it because both the background color and the text are black; use Ctrl+A to verify this). You need to move that attribute to the element that should hold the image's description - and nothing else.
    Last edited by Jesdisciple; 10-14-2008 at 09:09 PM.
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

  3. #3
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    perfect. thank you for your help!

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
  •