Style Sheets
  Home arrow Style Sheets arrow Dynamic Galleries with DOM and CSS
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
STYLE SHEETS

Dynamic Galleries with DOM and CSS
By: Chris Heilmann
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 22
    2005-01-31

    Table of Contents:
  • Dynamic Galleries with DOM and CSS
  • Basic Functionality of a Thumbnail Gallery
  • Old School Dynamic Galleries
  • Sketching our Gallery
  • The Javascript
  • The Stylesheet
  • A Sequential Gallery
  • Other options

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Dynamic Galleries with DOM and CSS


    (Page 1 of 8 )

    Thumbnail galleries are one of the first things that made the Web surfing experience more interesting. These are whole pages of preview images, which, when clicked on, became the big ones allowed for fast scanning of the image material on offer and easy access to selected pictures. Chris Heilmann shows you how to create and maintain a thumbnail gallery.


    Old School Thumbnail Galleries

    The first and still best way to create and maintain a thumbnail gallery is to create it on the backend. We grab the image material from a database, generate the thumbnails on the fly and allow the visitor to navigate from thumbnail pages to the big picture ones and back with a set of linked templates. This will guide the visitors through the whole image collection, and they can bookmark certain pictures. These galleries are fully accessible –- if we go through the sometimes cumbersome process of adding good alternative text. 

    These galleries do not necessarily need a database and scripting enabled on the server. Many tools generate static galleries that simply have to be transferred over to the server. 

    However, thumbnail galleries mean a lot of traffic and -- depending on your page templates and their page weight -- visitors might be annoyed by the reloads when navigating through the gallery. When your server is unable to serve dynamic pages, you also have to transfer a lot of files for each update: the thumbnails, the images, the thumbnail HTML documents and one HTML document for each image. 

    More Style Sheets Articles
    More By Chris Heilmann


       ·  Hi Chris, Nice article! I liked a lot the use of the DOM approach....
       · I liked the article a lot but a copy of the source code and style sheet would be...
       · [url]http://icant.co.uk/articles/dyngallery/dyngallery.zip[/url], however without...
       · Thanks for the link to the zip file.The source files just lets me see how it all...
       · Hi! Great article you have there! Honestly, it's my first time to see this kind of...
       · Guess I'm not the "Anonymous Loozah" :) but I have a comment on this article and the...
       · And it works perfectly here... Netscape 4.x should neither get a stylesheet nor...
       · This is a great article, but it is a pity, that the example doesnt work well in my...
       · The gallery works perfect on my firefox, on 3 different computers. Can you please...
       · It seems tha href is not removed corectly, because it starts a function but...
       · I forget to say, that the problem on my firefox could be with tab browser extension,...
       · Script works great on IE, but I can't adjust the positioning of the big pic in...
       · You got a URL where we can see the problem?
       · Here's the URL (temporarily,...
       · 1) Your pages are in quirksmode2) Your HTML is tagsoup :)...
       · Thanks for your response. The page is now fixed and validating with a HTML 4.01...
       · I love this article as it produces exactly what I am looking for. The only thing is...
       · This script was the best way to do a gallery that I could find - others seemed to...
       · Please fix the floating ads on the right side of the screen. They are floating over...
       · hiya,great script, looks really good - only problem is that when I run in IE7...
     

    STYLE SHEETS ARTICLES

    - Image Replacement CSS Techniques
    - Using BlueTrip`s Success, Notice and Error C...
    - More Uses for the Thin and Caps CSS Classes ...
    - Styling Definition Lists with the BlueTrip C...
    - Styling Unordered and Ordered HTML Lists wit...
    - Using the BlueTrip CSS Framework`s Thin and ...
    - Adding Borders to Web Page Columns with Blue...
    - Introducing the BlueTrip CSS Framework
    - Using a Background Grid to Assist Web Page L...
    - Extending the Rule Of Thirds for Web Page La...
    - A Two-Column Web Page Layout Based on the Ru...
    - Using the Rule Of Thirds for Web Page Layout
    - Swapping Columns Using the Divine Ratio for ...
    - Using the Golden Ratio in Liquid Web Page De...
    - Fundamental Design Principles for Web Page L...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek