Results 1 to 5 of 5

Thread: Lightbox 2 Help Needed

  1. #1
    Join Date
    Nov 2008
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Lightbox 2 Help Needed

    How can i link my buttons (officially pictures but i saved them as a navigation bar really) to my lightbox 2 application. Lightbox works perfectly when you click the image1 writing but when i click my buttons it just links to images/gym1.jpg and shows the picture as an external link. As in another web browser when really i want clicking the button to result in lightbox coming up as it does with the text


    This is how my text is laid out
    <a href="images/gym1.jpg" rel="lightbox[roadtrip]">Facility 1</a>
    <a href="images/gym2.jpg" rel="lightbox[roadtrip]">Facility 2</a>
    <a href="images/gym3.jpg" rel="lightbox[roadtrip]">Facility 3</a>
    <a href="images/gym4.jpg" rel="lightbox[roadtrip]">Facility 4</a>
    <a href="images/gym5.jpg" rel="lightbox[roadtrip]">Facility 5</a>
    <a href="images/gym6.jpg" rel="lightbox[roadtrip]">Facility 6</a>
    <a href="images/gym8.jpg" rel="lightbox[roadtrip]">Facility 7</a>
    <a href="images/gym9.jpg" rel="lightbox[roadtrip]">Facility 8</a>

    I think i want each one to be linked to a button but thats just not happening .


    Please help!!!


    Rich

  2. #2
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Do you have a link to your site?

  3. The Following User Says Thank You to Jon101 For This Useful Post:

    fulham7 (11-10-2008)

  4. #3
    Join Date
    Nov 2008
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    no sorry, what code do you want from it?

    im using dreamweaver 8 and fireworks 8 to make the buttons

    Thanks

    Rich

  5. #4
    Join Date
    Nov 2008
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Just fixed it! Had to edit add to buttons the "lightbox" bit!

    What a numpty

    Thanks anyway

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

    I believe that may work with Lightbox 2.04, but probably not with earlier versions. In any case, it probably results in invalid HTML, something like:

    HTML Code:
    <input type="button" href="some.jpg" rel="lightbox[roadtrip]">
    The issue is that the href attribute isn't valid for an input tag (or a button tag, if that's what you used), perhaps the rel attribute isn't either. But it should at least work in some browsers, probably not in FF. Or maybe you just meant an image that looks like a button, that would be valid:

    HTML Code:
    <a  href="some.jpg" rel="lightbox[roadtrip]"><img src="some_tbn.jpg"></a>
    - John
    ________________________

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

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
  •