How to create a Spry Gallery

Sorry for the rudimentary question, but I want to actually create a spry gallery like the one in the demos, but I am lost as to where to start (using Dreamweaver).
Thanks, Don

Hi,
The basis of the photo gallery is a spry master region and a detailregion.
Let's say your spry dataset is called photos.
The thumbnails within the master region are just like something below
<div spry:region="photos">
<div spry:repeat="photos">
<img src="{thumbURL}" spry:setrow="photos"/>
</div>
</div>
and the current image being displayed sits within this markup.
<div spry:detailregion="photos">
<img src="{imageURL}"/>
</div>
When you click on the thumbail it sets the current row of the photos dataset to that of the thumbnail.  The detailregion automatically listens for this changes to updates it markup to show the matching full size photo for that row.
You then add some classes or div ids and css to style your photos and you have your basic photo gallery.
If you want to be able to select different galleries then you have different XML datasets for each gallery and on clicking the appropriate link or select item you run code like below
photos.setURL("gallery1.xml");
photos.loadData();
photos.setURL("gallery2.xml");
photos.loadData();
photos.setURL("gallery3.xml");
photos.loadData();
This will reload both the master region (thumbnails) and the detailregion (currently selectedphoto).
For the slideshow effects you just use Spry effects and the setrow functionality triggered via a timer (setInterval) i.e. here's some sample code from one of my pages
function pauseShow()
clearInterval(StartSlideTimer);
Spry.$$("#slideshowPlaying")[0].innerHTML = "";
function startShow()
clearInterval(StartSlideTimer);
StartSlideTimer = setInterval("fadeOutContentThenSetRow()", 6000);
if (shuffle)
Spry.$$("#slideshowPlaying")[0].innerHTML = "<p>You are playing the slideshow in shuffle mode</p>";
You can see the working page here www.thehmc.co.uk/photo.html
Our club pages works with our photos and albums on our Picasa account because that way you don't need to produce the xml, Picasa does that via it's rss feeds.
Feel free to use any of the code I've written in your pages or start with a basic version as I've outlined at the top - that's how the above page started out then I styled it with css and added the fancier stuff once the basics were working.
Regards
Phil

Similar Messages

  • CS6 How to create a photo gallery?

    CS6 How to create a photo Gallery?

    I like Fancybox2.  It's a big improvement over Lightbox &  the original Fancybox.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5, with Fancybox2 Viewer</title>
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!--LATEST JQUERY CORE LIBRARY-->
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <!--FANCYBOX plugins-->
    <link href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.css" rel="stylesheet" media="screen">
    <script src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
    <style>
    /**this styles image container**/
    #thumbs p {
        float: left;
        width: 180px;
        height: 12.5em;
        margin: 10px 0 0 20px;
        padding: 10px;
        border: 1px solid silver;
        /**rounded borders**/
        -moz-border-radius: 20px;
        -webkit-border-radius: 20px;
        border-radius: 20px;
        /**this styles caption text**/
        font: italic 14px/1.5 Geneva, Arial, Helvetica, sans-serif;
        color: #666;
        text-align: center;
    /**recommend using same size images**/
    #thumbs img {
        width: 160px; /**adjust width to thumbnail**/
        height: 120px; /**adjust height to thumbnail**/
        margin-bottom: 1.5em;
        opacity: 0.75;
    #thumbs img:hover { opacity: 1.0 }
    /**float clearing**/
    #thumbs:after {
        content: ".";
        clear: left;
        font-size: 0px;
        line-height: 0;
        display: block;
        visibility: hidden;
    </style>
    </head>
    <body>
    <h1><a href="http://fancyapps.com/fancybox/">Fancybox2</a> Viewer with images</h1>
    <!--insert thumbnails with links to full size images below-->
    <div id="thumbs"> <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 1" /></a> <br />
    Caption 1 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 2" /></a> <br />
    Caption 2 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 3" /></a> <br />
    Caption 3 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 4" /></a> <br />
    Caption 4 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120" alt="Thumbnail 5" /></a> <br />
    Caption 5 </p>
    <!--end thumbs--></div>
    <!--Fancybox with Iframe-->
    <h1>Fancybox with Iframe</h1>
    <h3><a class="fancybox" data-fancybox-type="iframe" href="http://example.com">EXAMPLE.COM</a></h3>
    <!--FancyBox function code-->
    <script>
    $(document).ready(function() {
        $('.fancybox, iframe').fancybox();
    </script>
    </body>
    </html>
    Nancy O.

  • How to create a photo gallery so photos on the page can be scaled? [was: Flash CS6]

    Hello!
    I have a schoolproject where I am going to make a photogallery to pur inside a dreamweaver page. I know how to make the actuall gallery, but the difficulty part is that I have to make it so you can scale the photos when they are on the page.
    Do anyone know how to do this?

    If your page isn't responsive or at least % width, your gallery images can't rescale to layout.
    However you could use a modal window like Fancybox that invokes full-sized images when thumbnails are clicked.  See this example:
    Alt-Web Templates :: CSS Semi-Liquid, Photo Proof Sheet
    Nancy O.

  • No spry menu, how to create a photo gallery?

    Ok so I used spry collapsible panels as well as spry widgets to create my photo galleries and slide shows, now that they are gone from CC I do not know what to do?!
    I tried using jquery but not sure how to make a slideshow or gallery from it. PLEASE HELP
    I am using DW CC latest version

    What kind of gallery are you looking for?  Sliding?  Look at Cycle2
    Modal Window (Lightbox)?  Look at Fancybox2
    Cycle2 Example:
    http://alt-web.com/FluidGrid/Fluid2.html
    Fancybox2 Example:
    http://alt-web.com/TEMPLATES/CSS-Semi-liq-photo-sheet.shtml
    See Primer for using jQuery Plugins
    http://alt-web.blogspot.com/2012/11/primer-for-using-jquery-plug-ins.html
    Nancy O.

  • How to create a grid-gallery ?

    I want to create a gallery similar to this one : http://jeretslack.com/
    featured on this page: http://www.adobe.com/be_en/products/muse/jeret-slack.html
    basically, i want to use the thumbnails as the main images of the gallery (so no lightbox)
    When you scroll over the thumbnail, text appears. I have tried numerous times to insert text into the thumbnail, with no success.
    Then, once you click on the thumbnail image, it takes you to a gallery with more images.
    I have taken the time to go through many tutorials and forums, but haven't found any clear answers. Thank you for your time.

    Consider both as separate images i.e. the one that appears on load and the other one that appears on mouse hover. You can create this effect by simply selecting a rectangle tool and fill an image into it (for the Normal state). Then select the rectangle again, switch to the States panel and apply an image (the one with the text) to the Rollover state. Now create as many you like and align them to your liking.
    Thanks,
    Vinayak

  • How to create multiple spry menu in one site?

    Hello,
    I know it's been answered before but I couldn't get a step by step answer. I have a template already live.  It has a menu with 5 items. I need to add another menu with 7 items in one of the pages in the same site. How could I do this?
    Zandy Leonard
    [Personal contact info removed by moderator]

    Wouldn't it be simpler to add seven items to the menu you have now?
    If that can't fly, please read about Optional Regions.
    http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7acca.h tml#WScbb6b82af5544594822510a94ae8d65-7acaa
    Nancy O.

  • How can I create an image gallery with "next" buttons?

    So I am almost done with my portfolio site (YES!)..now I just need the actual content (the images). My site is written in AS3.
    I've watched many tutorials on how to create an image gallery (auto scrolling ones, scrolling ones that require mouse hover, etc etc), but those aren't what I am looking for.
    I want a gallery that looks exactly like this one here:
    http://jalbum.net/res/help/integrating-tutorial.html
    I have a lot of work to display in my porfolio so there must be arrows at the end of the thumbnails so I can add more stuff. So I am just stumped on how to make the image gallery work with the ability to scroll for more photos with the click of the arrows.
    Any ideas? Thank you.

    Watching tutorials and learning from them are two different things.  If you have learned from them you should be able to use what you have learned to devise a gallery such as the one you link to.  If you have learned from them and cannot use what you learned, then you probably need to find/learn more.
    If you study the design you linked you should be able to reason out what elements you need to devise... it is not overly complicated. 
    For the large picture you could have a Loader into which you load whatever image is selected from the thumnails. To get a brief transition you could just set the alpha of the Loader to 0 when an image change is occuring and gradually fade it in after the image has loaded.
    The greatest challenge you are likely to face is in getting the thumbnails to advance back and forth depending on which is selected.  All of the thumbs would be placed in a container (movieclip or sprite) and that would be masked so that only a portion of them is visible. 
    All thumbs that are not selected have their alpha property set to some value less than 1.  Selecting one calls for the file it associates with to be loaded into the Loader.  If the choice happens to lie off screen, then you need to move the movieclip that contains all of the thumbs some set value in the right (+x) or left (-x) direction.
    If you want the thumbnails to wrap infinitely then when one leave the thumbnails area for movement in a direction, you need to take that thumb and relocate it to the other end of the thumbs in the container.

  • Creating an image gallery

    Hi all,
    I am trying to work out how to create an image gallery on a
    page whereby there is a set of thumbnails to the side and the
    relevant large image opens adjacent to the thumbnails when they are
    moused over.
    I have done this using the hide/show layers function but the
    output appears incosistently in different browsers and/or window
    sizes. I had in mind some adaptation of the "swap image" behaviour
    that would open the swap in a different position? Or alternatively
    making the layers approach display consistently?
    The layers version of the page can be
    viewed
    here
    Any suggestions or guidance would be greatly appreciated,
    thanks in advance,
    Graham

    On Thu, 1 Feb 2007 15:25:09 +0000 (UTC), "hydroculture"
    <[email protected]> wrote:
    >I don't know the answer - wish I did, but I have been
    using a substitute where
    >I click on the thumbnail - which via a hyperlink takes me
    to a page where the
    >large image appears. Not as neat as what we both want ,
    but gets the same
    >effect,
    If clicking a thumbnail is an option then this is a better
    solution -
    a free extension from PVII:
    http://www.projectseven.com/tutorials/images/showpic/index.htm
    Steve
    steve at flyingtigerwebdesign dot com

  • How to do a video gallery page

    Hi everyone
    when you create a new page iWeb lets you choose from some preset pages like the homepage, the blog, the video and the photo gallery.
    But the video page lets you put one or more videos in just one page.
    If you have many videos and you want to divide them in different categories like the photo gallery page do for photos, how can you do it?
    If you select the photo gallery and if you put videos instead of photos from your iTunes inside of it, it seems to do the job, but I can't use this trick cause I have not enough hosting space to store the videos, and infact I uploaded them in youtube and with the youtube widget the photo gallery doesn't work and shows nothing...
    Did someone know how to create a video gallery page (or something like that) with videos from youtube?
    Thanks
    Message was edited by: PaoloPhino

    This is one way you could do it: PhotoPresenter Animated Slideshow Themes. The thumbnails can be as small as you'd like. This way none of the video files have to load before they play button is selected. Otherwise the page would take forever to load.
    How the button is created is described in this demo page: Opening Item in a New, Precisely Sized Window
    OR you could use a video jutebox like the one on this page: http://www.holyredeemernorthbend.org/HRWeb/Our_Videos.html.
    His tutorial on how to implement it is here: http://www.holyredeemernorthbend.org/HRWeb/jukebox.html.
    OT

  • Create a photo gallery

    I want to make a photo gallery for my website. I have all the photos uploaded to the site. I have their urls. What I want, is an application that will connect to an xml file on my website and find the urls in it, so that when I want to change photos I just adjust the xml document and don't have to reupload the application and so forth. A few questions, like, how. And how to make the xml document and how to write it in the right way. Thank you.

    Hi there these blog post shows you how to create a photo gallery in Flex using an xml file.
    http://blog.flexcommunity.net/?p=25
    http://blog.flexcommunity.net/lab/gallery2/bin-release/photoGallery.html
    I hope you find them useful.

  • Link to Particular Spry Gallery

    Dear All - Can anyone help?
    I have created a spry gallery page with a dropdown to a
    number of different categories...
    Gallery
    Page
    I want to be able to add links on another page that will
    automatically load a particular gallery from this page, i.e. select
    a particular category to be displayed from a link on another page.
    I was imagining that the links might be in the form "
    http://.../gallery_prototype.php?sitename=Ireland%20(Delta)"
    or similar, and was looking at the "Using Spry Data with URL
    params" code, but can't seem to get anything working...
    I have seen this post
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=602&threadid =1344357&highlight_key=y&keyword1=gallery
    I have based my gallery on the standard spry gallery (have I
    made a mistake by doing this?)
    If you could help I would be most appreciative...
    Many Thanks
    James

    think I'm getting closer, but not sure - if someone could
    take a look that would be great thanks...

  • Spry gallery positioning photos

    Hi,
    I am pretty new to dreamweaver and I am creating my first website.
    I've created a spry gallery using the tuturial, which is looking good so far.
    However I was wondering if there is any way of having the large photo centered?
    Thanks,
    Phil.

    Hi,
    Just want to clarify, it is the large picture that displays on the right when clicking on the thumbnail. I was hoping i could have this centered, when displaying landscape and portrait photos.
    If anyone has any ideas it would be appreciated as I am hoping to upload my website soon and this is one of the last things i need to do.
    thanks,
    phil

  • Creating a photo gallery like the China Gallery in Adobe Labs. How?

    I have photos in several categories (I'll use 2, "frank" and "wolfie" as examples here). What I'd like to do is build a photo gallery like the China Photo Gallery shown in the Adobe Labs site, where the user can switch between categories without going to a different page. Here's what I've done so far and how I'm stuck:
    I created a photo gallery with the instructions in the tutorial "Building a photo album with the Spry Framwork". I then inserted a Tabbed Panels widget for navigating between the categories.
    I set up an XML file as follows:
    /* frank category */
    <photo
    path = "001p.png"
    width = "467"
    height = "467"
    thumbpath = "001p.png"
    thumbwidth = "85"
    thumbheight = "85">
    </photo>
    /* wolfie category */
    <photo
    path = "001f.png"
    width = "467"
    height = "467"
    thumbpath = "001f.png"
    thumbwidth = "85"
    thumbheight = "85">
    </photo>
    To create the div holding the thumbnails for the "frank" category, I entered the following:
    <div class="thumbdiv" spry:region="dsGallery"><img src="thumbnails/frank/{@thumbpath}" spry:repeat="dsGallery" spry:setrow="dsGallery" class="thumbs" /></div>
    To create the div where the full size images will be displayed, I entered the following:
    <div class="mainpic" spry:detailregion="dsGallery"><img src="images/frank/{@path}" onload="MM_effectAppearFade(this, 1500, 0, 100, false)" /></div>
    Then, in the tabbed panel set for the "wolfie" category, I did the same thing, substituting "wolfie" for "frank". However, since there is only one xml file, spaceholders for all of the thumbnails appear in the thumbnail div for the frank category. I realize that I'll probably need to create a separate xml file for each category, but how do I set it up so the correct xml file is accessed when the link in the tab is clicked? Or am I approaching this all wrong?
    From reviewing the source for the China gallery, it appears that they set up links to different xml files instead of Tabbed Panels. How does that work? There are also some javascript files I can't find anywhere on Adobe's site.
    Thanks

    Hi,
    If you have seperate XML file but with the same basic structure then you can change the XML a Spry dataset refers to and regenerate the spry region without reloading the full page.
    So on my photo gallery page I can change the album the photos are shown from via the seturl sprydata function as below.  dsPhotos being my Spry dataset that points to the relevant XML dataset with my image references and captions etc.  My XML is actually dynamically generated from Picasa RSS feeds (and RSS feeds are XML) but the principle will be the same with your static XML.
    First I add an event listener for when someone clicks on an album (the li tag within my div with the id "albums" holds a photo and title for each album.)
    function Albums()
    var myalbums = Spry.$$("#albums li", "TabbedPanels1")
    var rows = dsAlbums.getData();
    var setListener = function( element, value )
      Spry.Utils.addEventListener( element, "click", function(){ showAlbum( value ); },false );
    for( var i = 0, length = myalbums.length; i < length; i++ )
      setListener( myalbums[i], i );
    Then this is the code which changes the photo album to be shown. (when the user clicks the relevant album)
    function showAlbum(i)
    pauseShow();
    pImage = 'No';
    var rows = dsAlbums.getData();
    var albumid = rows[i]["albumid"];
    var url = "xml/PicasaAphotoFeed.asp?albumid=" + albumid;
    dsPhotos.setURL(url);
    dsPhotos.loadData();
    var rowcount = dsAlbums.getRowCount() - 1;
    var nextalbum;
    var navnext;
    var n;
    The page is here www.thehmc.co.uk/photo5.html is you want to see it in context.
    In your case showAlbum would switch between Frank.xml or Wolfie.xml depending on how you decide to name your xml datasets.
    Regards
    Phil

  • How can I create a photo gallery in flash cs3, Iam a beginner in flash

    How can I create a photo gallery to put into my current flash site Iam creating? Using  flash cs3, can anybody suggest any tutorials (noting complicated with me being new to flash cs3)
    When going on line I saw that maybe you can use Dreamweaver, XML, or even Photoshop can anybody explain the difference between using one or the other?
    THanks

    Indeed, google ftw.
    For example:
    +as3 photo gallery flash tutorial
    reveals many including this one:
    http://www.flashmagazine.com/Tutorials/detail/as3_photo_gallery/

  • How to Create a Persistent button on the top HTML gallery

    Hi,
    In my InDesign Folio I have an article with full page HTML photo gallery. The photo grid occupies the full screen. I want to create a Persistent button on the top of this gallery which user can tap to go to the Main Menu page. This button is  always visible at one place even as user scrolls up and down the gallery. I tried creating it on the top layer, and on the top layer for Master page, but the button disapperas when the HTML gallery loads.
    So the user does not see any button to navigate out of the gallery to another article.
    Any ideas how to create the persistent button ?
    Thanks in advance.
    -MP

    Depending on if you are using the HTML as either an article or in an overlay, you may be able to either use the standard navto and goto hyperlinks syntax or place a blank button on top of your link in the HTML.
    I am not sure if using the standard navto and goto syntax will work between an HTML article and an Indesign article. Maybe Bob Bringhurst, Bob Levine, or one of the staff members can clarify. If you are using your HTML in an overlay, you can add a transparent button on top of your link or image to return to whatever page you like.

Maybe you are looking for

  • How do I fix my Macbook's sleep issue (OHC2)?

    I have a Macbook unibody (2.4GHz from 2010) with the OS 10.8.5.  After updating to the latest operating system and software updates, my Mac will not stay asleep for more than 5 seconds whether or not it's running plugged in or not nor will it stay as

  • PhotoBooth - iMovie Black Boxes

    I have seen only a few people mention this problem online, and noone seems to get an answer, though at least one person said that completely reformatting seemed to fix the problem, but this isn't an option for me... I updated my MacBook Pro (17" Mid-

  • Last Logon Inaccurate

    Hi I am using this AD Tidy tool and found that a user last logon time was on a Sunday @ 5PM. We have confirmed that the last day for the user is Friday @ 5PM. We forgot to disable the account until Monday. But what we find it weird is that this User

  • DB2e for  Windows Mobile 5.0

    Hello, I'm looking for a trial version of DB2e V8.2.4 for Windows Mobile 5.0 on PDA (I installed an emulator on my PC) because we have to use Mobile Infrastructure 7.0 and I would like to try it on my emulator, but I don't find the installation files

  • Paint Bucket Tool and Rounded Corners

    Hello everyone. First and foremost I have to mention that I am kind of a newbie with PS, so go easy on me. I have been using the bucket tool in order to fill the background of some images, but after a while the colour I selected resulted in a differe