2014-06-24, 06:55:59
(2014-06-24, 04:50:29)Martin Wrote: Hello,
lately you (mvlcek) explained me how to open a Gallery with a link (PrettyPhoto).
Code:<a href="#" onclick="$('.gallery-thumb a').eq(0).trigger('click'); return false;">Open Gallery</a>
On one page I have 3 different Galleries.
My question:
Is it possible to define in the link which gallery should be opend ?
How do i have to integrate the name of the Gallery in this call ?
It would help me a lot – thanks !
You just have to address the correct gallery in the jQuery selector, e.g. if one gallery is named houses, the surrounding div has the class gallery-houses:
Code:
... $('.gallery-houses .gallery-thumb a') ...
Code:
... $('.gallery:eq(2) .gallery-thumb a') ...