Speaking about lightbox 2.03.
Do you know how to call lightbox gallery with rel="exmaple1" from javascript?
like onClick="javascript:exmaple1"
Does anyone know? with jQuery would be alright too..
Thank you for any help!
Speaking about lightbox 2.03.
Do you know how to call lightbox gallery with rel="exmaple1" from javascript?
like onClick="javascript:exmaple1"
Does anyone know? with jQuery would be alright too..
Thank you for any help!
In future, please post new questions in a new thread like here where I've moved this post, and:
Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.
To answer your question though, you can do, say your anchor that you want activated has an id:
To activate it from javascript:Code:<a href="some_big.jpg"id="image_2"rel="lightbox"><img src="some_small.jpg" alt=""></a>
Code:myLightbox.start(document.getElementById('image_2')).apply(document.getElementById('image_2'));
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
I get a javascript error when I do this: myLightbox is not defined.
We need a link to the page in order to help.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks