PDA

View Full Version : Lytebox/iframe problem



filia
09-19-2010, 01:49 AM
I am trying to work out a lytebox-gallery from within an iframe from which I link to the next set of images in the same gallery.
Only that won´t work, and the reason seems to be that the lytebox-script will only function with the source-file of the iframe and not the next.
It is a bit difficult to explain, so please take a look:

http://www.studio-b.dk/test/test_upload/lytebox_gallery_stribe_slide/lytebox_gallery_stribe.html

As you can see only the first set of images unfold properly in the lytebox.
So far there are two html-files in the iframe:
Source-file:
http://www.studio-b.dk/test/test_upload/lytebox_gallery_stribe_slide/maleri_stribe1.html
and the next:
http://www.studio-b.dk/test/test_upload/lytebox_gallery_stribe_slide/maleri_stribe2.html

Apart from having come this far I am not much into javascript, including the lytebox-script, and apparently my idea is not the way to do this.

Could anyone help me back on the track?
The gallery should also be able to produce a slideshow that exeeds the first 18 images, since in this example there are 36 images in the gallery.
All images are in the same folder and named gal1_1, gal1_2 etc.
Any help will be most appreciated!

riptide
09-19-2010, 06:41 PM
why do you want to load light box into the iframe by the way?

filia
09-20-2010, 09:04 PM
Each gallery has a link from the mainpage and to my knowledge an iframe is the only way to solve this.
Personally I am still more familiar with oldfashioned table and cells-settings instead of div and boxes. But I have also come across that it is not possible to link to the content of a div with overflow which is why iframes are still widely used.

So far I think my solution will be to put all thumbnails in the same html-page and find and customize some nice looking scrollbar.
But I think there must be a more elegant solution somewhere.
Besides I would like to make use of the resize-functions, so that thumbnails are produced automatically, in this case even set up in single rows.

So . . . : A horizontal gallery with thumbnails in single rows + some kind of 'call' for next row and all inside an iframe. And with lytebox and continous slideshow or next/prev including the total of images in the gallery.

. . . Is it possible?
?:-)

darktogepi
01-25-2011, 03:12 PM
look at this in the second html (maleri_stribe2.html):



<script type="text/javascript" language="javascript" src="../../Copy of lytebox_gallery_stribe/lytebox.js"></script>


does that file exists? i guess this should look like this:


<script type="text/javascript" language="javascript" src="lytebox/lytebox.js"></script>


Also, the first image in the second html has a different rel than the rest... check that too

good luck!