Results 1 to 6 of 6

Thread: Linking lightbox caption to a subfolder??

  1. #1
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Linking lightbox caption to a subfolder??

    1) Script Title: Lightbox view 2.03

    2) Script URL (on DD): http://www.dynamicdrive.com/forums/s...ad.php?t=20140

    3) Describe problem: The script works fine when I want to link my lightbox image caption to the url of a website, but I run into trouble when I want to link to a subfolder inside my own website.

    Here's an example of my code:

    a href="IMAGES/dd_mungo_b.jpg" rel="lightbox" onmousedown="this.title='<a target=\'_blank/\' href=\'http://www.voodazz.com/html/mungo.html/\'>View Template</a>';" onmouseout="this.title='';">

    I always get a blank window with a big fat 404 Error.

    I'm probably messing up with the whole /\ syntax because I'm not really familiar with it. Hopefully it's something really simple like that.
    I have spent at least 2 hours looking everywhere for a solution. Hopefully I'll finally get the help I need here.
    Thank you for your patience

  2. #2
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anyone??

  3. #3
    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

    If you use this script:

    http://www.dynamicdrive.com/dynamici...box2/index.htm

    You don't need to mess with all of that (from the demo page):

    The rel attribute is mandatory in order to activate the effect for this particular image. The "title" attribute is optional, and when defined, adds a caption beneath the enlarged image. The "href" attribute obviously should contain the path to the enlarged image. If you wish a particular caption ("title") to be hyperlinked to a specific URL, throw in a "rev" attribute pointing to the desired URL. For example:

    Code:
    <a href="images/image-1.jpg" rel="lightbox" title="my caption" rev="http://www.dynamicdrive.com">image #1</a>
    - John
    ________________________

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

  4. #4
    Join Date
    Jun 2008
    Posts
    40
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by voodazz View Post
    target=\'_blank/\'

    isn't it supposed to be: target=\'_blank\'

  5. #5
    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

    Quote Originally Posted by newyorker2 View Post
    isn't it supposed to be: target=\'_blank\'
    Probably, but they'll be much better off upgrading, that will eliminate the need for all those eye straining, mind numbing slash escapes.
    - John
    ________________________

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

  6. #6
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    THANK YOU so much for your help! Once I upgraded and followed the directions everything worked out great! Sooo much simpler than the pain in the neck way I was doing it.
    This site is exactly what I've been looking for because I've managed to find answers to several other personal tweeks concerning lightbox.

    Thanks again!

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
  •