Visualizzazione dei risultati da 1 a 3 su 3

Discussione: Galleria Javascript

  1. #1

    Galleria Javascript

    Ciao A tutti,
    sto realizzando un sito attraverso l'uso di un template già pronto.
    http://themes.alessioatzeni.com/html/brushed/
    Il problema è che nella sezione: WORK, dove ci sono le foto portfolio non riesco a creare degli album dove poter formare gruppi (divisi dagli altri) di immagini.
    Ora se provate a cliccare le immagini (thumb o icone) si apre la classica fancybox e si scorrono semplicemente le immagini delle icone ingrandite.
    Io ho bisogno che per esempio cliccando sulla prima thumb, si apra solo 1 gruppo di immagini diviso dagli altri album, un po' come succede negli album di facebook insomma...così dovrebbe funzionare per tutte le altre thumb o icone...
    Premetto che non so praticamente nulla ancora di javascript...ma conosco solo il codice html5 e css3
    questo è il codice che c'è ora:


    <!-- Item Project and Filter Name -->
    <li class="item-thumbs span3 design">
    <!-- Fancybox - Gallery Enabled - Title - Full Image -->
    <a class="hover-wrap fancybox" data-fancybox-group="gallery" title="Brochure" href="_include/img/work/full/image-04-full.jpg">
    <span class="overlay-img"></span>
    <span class="overlay-img-thumb font-icon-plus"></span>
    </a>
    <!-- Thumb Image and Description -->
    <img src="_include/img/work/thumbs/image-04.jpg" alt="investment opportunity.">
    </li>
    <!-- End Item Project -->

    <!-- Item Project and Filter Name -->
    <li class="item-thumbs span3 illustration">
    <!-- Fancybox - Gallery Enabled - Title - Full Image -->
    <a class="hover-wrap fancybox" data-fancybox-group="gallery" title="Xilography" href="_include/img/work/full/image-05-full.jpg">
    <span class="overlay-img"></span>
    <span class="overlay-img-thumb font-icon-plus"></span>
    </a>
    <!-- Thumb Image and Description -->
    <img src="_include/img/work/thumbs/image-05.jpg" alt="Xilography">
    </li>
    <!-- End Item Project -->

    <!-- Item Project and Filter Name -->
    <li class="item-thumbs span3 illustration">
    <!-- Fancybox - Gallery Enabled - Title - Full Image -->
    <a class="hover-wrap fancybox" data-fancybox-group="gallery" title="Comic book Character" href="_include/img/work/full/image-09-full.jpg">
    <span class="overlay-img"></span>
    <span class="overlay-img-thumb font-icon-plus"></span>
    </a>
    <!-- Thumb Image and Description -->
    <img src="_include/img/work/thumbs/image-09.jpg" alt="Drawing">
    </li>
    <!-- End Item Project -->



    Sapreste aiutarmi nel creare questi gruppi cambiando i nomi di classi o altro?
    Altrimenti se sapete come creare album su fancybox datemi un consiglio per cortesia...grazie!

  2. #2
    Puoi personalizzare il data attribute "data-fancybox-group" per raggruppare le immagini

  3. #3
    Ciao Luca,
    grazie per il consiglio sono riuscito a risolvere questo problema per raggruppare le immagini:

    <!-- Item Project and Filter Name -->
    <li class="item-thumbs span3 design">
    <!-- Fancybox - Gallery Enabled - Title - Full Image -->
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full1.jpg">
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full2.jpg">
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full3.jpg">
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full4.jpg">
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full5.jpg">
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full6.jpg">
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full7.jpg">
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full8.jpg">
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full9.jpg">
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full10.jpg">
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full11.jpg">
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full12.jpg">
    <a class="hover-wrap fancybox" data-fancybox-group="gallery4" title="Asti Ovest" href="_include/img/work/full/image-08-full13.jpg">
    <span class="overlay-img"></span>
    <span class="overlay-img-thumb font-icon-plus"></span>
    </a>
    <!-- Thumb Image and Description -->
    <img src="_include/img/work/thumbs/image-08.jpg" alt="Proposal">
    </li>


    Il problema adesso è che le immagini quando vengono visualizzate nel browser ingrandite e cliccate non sono nell'ordine giusto in cui sono inserite nel codice hmtl...
    Stranamente parte dall'ultima foto e poi le scorre al contrario: quindi se clicco a destra va sulla penultilma, poi terzultima e così via ecc...fino al mettere la prima foto per ultima...
    Ho provato anche a metterle al contrario nel codice ma niente da fare si mettono tutte strane e rimangono sempre al contrario, magari parte con l'ultima e poi le mette in ordine ecc... Insomma non capisco come si possa contorllare l'ordine di riproduzione delle foto in un album...
    Sapreste aiutarmi?
    Grazie

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.