JavaScript
  Home arrow JavaScript arrow Building Dynamic Shadows for an Image Gall...
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? 
JAVASCRIPT

Building Dynamic Shadows for an Image Gallery with JavaScript and CSS
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-07-13

    Table of Contents:
  • Building Dynamic Shadows for an Image Gallery with JavaScript and CSS
  • Review: key concepts for creating dynamic shadows
  • Working with an image gallery
  • Source code of the image shading application

  • 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


    Building Dynamic Shadows for an Image Gallery with JavaScript and CSS


    (Page 1 of 4 )

    If you're looking for a way to get realistic shading effects on your web site with some JavaScript and CSS, you've come to the right place. This third part of a three-part series applies what you learned in the first two parts to adding dynamic shadows to a simple image gallery.

    If you're a web developer who frequently builds JavaScript applications, then you know that it can be truly useful for extending the behavior of server-side programs.

    This series of articles applies this concept from a practical point of view. It uses copious code samples to show you how to use the functionality of client-side scripting along with some CSS styles to incorporate pretty realistic shadows into selected elements of a web document.

    And speaking of realistic shadows, you'll probably recall that during the previous tutorial of this series, I demonstrated how to build them very easily by using some DOM scripting and CSS, in this way adding a quite attractive shading effect to a selected DIV.

    As you learned in that particular article, this technique consists of creating via the DOM a gray-colored DIV (the shadow), and then positioning it absolutely behind a targeted DIV. Of course, the end result of this overlapping process is an appealing shading effect, achieved with minor trouble.

    In addition, it's worth mentioning here that this DOM-based technique not only uses unobtrusive JavaScript to build the shadows, but it's capable of degrading gracefully when scripting has been disabled on the browser.

    Hopefully you're now very familiar with building dynamic shadows using the DOM and CSS, but if you're anything like me, then you may want to see how these shadows can be utilized in a real-world example. Thus, in this final chapter of the series I'm going to show you how to incorporate them into graphics that belong to an existing image gallery. Sounds pretty interesting, right?

    Well, now that you've been introduced to the subject of this article, it's time to learn how to add dynamic shadows to a simple image galley. Let's jump in!

    More JavaScript Articles
    More By Alejandro Gervasio


       · This final chapter of the series shows you how incorporate some shadows to an...
     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







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