Results 1 to 4 of 4

Thread: Lytebox/iframe problem

  1. #1
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Lytebox/iframe problem

    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_upl...ry_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_upl...i_stribe1.html
    and the next:
    http://www.studio-b.dk/test/test_upl...i_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!

  2. #2
    Join Date
    Nov 2006
    Posts
    236
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    why do you want to load light box into the iframe by the way?

  3. #3
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?
    ?:-)

  4. #4
    Join Date
    Jan 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    look at this in the second html (maleri_stribe2.html):

    HTML Code:
    <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:
    HTML Code:
    <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!
    Last edited by jscheuer1; 01-25-2011 at 04:53 PM. Reason: clarity

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •