PDA

View Full Version : Combination of scripts



silverz
08-26-2007, 08:08 AM
1) a) Script Title: Lightbox image viewer 2.03
b) Ajax Tab Content Script

2) Script URL (on DD): a) http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm
b) http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

3) Describe problem:

I was wondering if it's possible to combine the above 2 scripts. Basically, if the light box thumbnails appear in one of the Ajax tabs, is it possible to make it so that clicking on the thumbnail would cause the image to enlarge and the background to darken throughout the entire web page(as in the standalone example of the lightbox script).

Regards.

ddadmin
08-27-2007, 01:28 AM
Hmm I don't see an easy way unfortunately. In cases where one of the external pages within Ajax Tabs Content contains a complex JavaScript, I would recommend the use of an iframe tag (http://www.dynamicdrive.com/forums/showthread.php?p=105217)to contain it. But with the Lightbox Image viewer script, this will mean the entire effect will be played out within the iframe, and not on the entire page containing it.