Eidher
03-07-2008, 11:51 PM
1) Script Title: Lightbox image viewer 2.03a
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm
3) Describe problem:
I need to control the Lightbox image viewer with a select form or with a javascript function using the onchange event of the select. How to do that?
In the example is used this:
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
But I dont have a link or thumbnail, I have a select like this:
<SELECT name="images" onchange="viewer();">
<OPTION VALUE=1>Value1</OPTION>
<OPTION VALUE=2>Value2</OPTION>
</SELECT>
Thanks.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm
3) Describe problem:
I need to control the Lightbox image viewer with a select form or with a javascript function using the onchange event of the select. How to do that?
In the example is used this:
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
But I dont have a link or thumbnail, I have a select like this:
<SELECT name="images" onchange="viewer();">
<OPTION VALUE=1>Value1</OPTION>
<OPTION VALUE=2>Value2</OPTION>
</SELECT>
Thanks.