Hey Paula! Welcome to the group :)
Bear in mind I never use the image gallery functions, so I may be full
of crap on this.
It looks like you're trying to generate a list of links that, when
clicked, will pop up a greybox with one of the pictures in the series,
yes? But in your javascript, you are only defining a single image in
image_set. You need to put the image_set definition in a PHP loop as
well.
Also, I think you should be using onclick instead of rel, with
GB_showImageSet(set, start_index, callback_fn). You'd need a counter
in the list generating loop to insert the start index value.
Again, I am quite possibly wrong on this...
Tyler
On Oct 2, 6:35 am, "María Paula Mariani" <[EMAIL PROTECTED]>
wrote:
> Hi !
>
> I'm Paula, from Buenos Aires. I'm new in this group! I've used greybox
> for several projects in a very basic way, and it helped me a lot all
> the time, is why I keep using it! Thank you guys!!
>
> Here is my trouble! I'm trying to display with just one link an entire
> directory of pictures with Grey Box, whose name I don't really know.
> I could make it work using PHP loop, but it just shows the first
> picture and keep loading the next ones but do not display the pictures
> at all. This is my script :
>
> <ul>
> <script type="text/javascript">
> var image_set = [{'caption': 'Flower', 'url': 'gallerypictures/'}
> </script>
> <ul>
>
> <li>
> <a href="gallerypictures/r8n.jpg" rel="gb_imageset[nice_pics]"
> title="Extensions & Convertions"></a><a href="#" onclick="return
> GB_showImageSet(image_set, 1)"></a>
>
> </li>
>
> <?php
> if ($gestor = opendir('D:\MYFOLDER')) {
> /* Itero en Archivo */
> while (false !== ($archivo = readdir($gestor))) {
> echo "<li>
> <a href='$archivo' rel='gb_imageset[nice_pics]'
> title='Extensions & Convertions'></a>
> </li>";
> }
>
> closedir($gestor);}
>
> ?>
>
> </ul>
>
> </ul>
>
> This is my first e-mail to this group, then excuse me if I'm
> proceeding without following your etiquette.
> If you could help me, I promise I will participate in this list forever!! :D
>
> Cheers from Argentina!
>
> --
> Paula
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GreyBox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/greybox?hl=en
-~----------~----~----~----~------~----~------~--~---