Results 1 to 3 of 3

Thread: Getting Thumbnail Image Viewer to load text

  1. #1
    Join Date
    Jan 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Getting Thumbnail Image Viewer to load text

    1) Script Title: Image Thumbnail Viewer II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    3) Describe problem: I need to load a paragraph of text in one of the loadareas while simultaniously loading an image in the other loadarea.

    I managed to do this with the old version of TIV II (like here www.dap-inc.com/lrl/index.shtml )
    But I'm at a loss on how to do it with the new version.

    Or better yet, if you can tell me how to get Lightbox 2.0 to work with the old TIV II... I've tried for days, but the rel="lightbox" wont initiate Lightbox when the link embedded in the large image is generated dynamically...

  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

    From your source code, additions red, and otherwise using the lightbox v2.03 script installed as instructed:

    Code:
    function returnimgcode(theimg){
    var imghtml=""
    if (theimg[1]!="")
    imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'" rel="lightbox" onclick="myLightbox.start(this);return false;">'
    imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
    if (theimg[1]!="")
    imghtml+='</a>'
    return imghtml
    }
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Works like a charm!

    Many thanks!

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
  •