Simple Gallery Question

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Simple Gallery Question

Anna
I currently use shadowbox and love it - now I want incorporate multiple images, a gallery.

So like I said I'm all setup - it works I just get two links instead of one for my gallery -



<link rel="stylesheet" type="text/css" href="js/shadowbox.css">
<script type="text/javascript" src="js/shadowbox.js"></script><script type="text/javascript"> Shadowbox.init( ); </script>

Brochure
Logo

Those two link both open the two picture gallery 0 I just want one link that point to multiple images - what am I missing?

thank you much !
Reply | Threaded
Open this post in threaded view
|

Re: Simple Gallery Question

Will Fastie
What I have done is use CSS to hide the other links:
    <a rel="shadowbox[x]" href="img1.jpg" title="Tall"><img src="thumb.jpg" /></a>
    <a class="noshow" rel="shadowbox[x]" href="img3.jpg" title="Wide"></a>
    <a class="noshow" rel="shadowbox[x]" href="img2.jpg" title="Square"></a>
    <a class="noshow" rel="shadowbox[x]" href="img4.jpg" title="Large"></a>
where
    .noshow { display: none; visibility: hidden; }
This code displays thumb.jpg on the page; clicking on that image invokes the gallery of the four images.

However, I think your question points to a possible improvement or extension to Shadowbox.js that would allow the gallery to be described in a simple JSON list rather than with markup. I think it might be possible to do that with the buildObject method, but I have not tried it yet.

www.fastie.com, Baltimore, MD USA.

Reply | Threaded
Open this post in threaded view
|

Re: Simple Gallery Question

capco
In reply to this post by Anna
When you put together a multiple slide show, does the numbering start at 0?

Reply | Threaded
Open this post in threaded view
|

Re: Simple Gallery Question

bill mccarley
In reply to this post by Will Fastie
Thank You Will!