• Resolved glennyg

    (@glennyg)


    heya!

    So I want to know to click a link or word (text) and it automatically shows lightbox. Is this possible?

    Basically, I want to have a link which says ‘Click here for images’. when you click, the lightbox appears on the same page- just as if you clicked an image.

    Any ideas?

    Thanks in advance!!

    Glenn

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter glennyg

    (@glennyg)

    I found this, but it only works for a single image.

    Thread Starter glennyg

    (@glennyg)

    Never mind, i’ve worked it out;

    Put all the subsequent members of the group in a hidden tag ;^)

    example

    <a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
      <div style="display:none;">
        <a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
        <a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
      </div>

    or use Fancybox and use ‘Manual call’ function.

    Hope this helps ??

    Glenn

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to click text and show lightbox?’ is closed to new replies.