na3

Out of context: Reply #10

  • Started
  • Last post
  • 11 Responses
  • GCM0

    Those free gallery engines are also called "unobtrusive JS enhancements" meaning if you have javascript disabled on your browser, the link will act like normally it should (load a new page and show a jpg). If you have js turned on (default), you got your gallery, effects and ajax calls working. That way (and with many other gallery engines _but_ not only galleries) if you just add a class to the link (like class="doGal" or div with class="dosomethingmagic"), the JS framework (jQuery in this case) will build all the shiny bits without having to alter your html or doing anything special. This is what makes jQuery special, the possibility to use the plugins (piece of code you just have to implement into your markup - like i did with this image gallery).

    If that modal window seems already outdated for ya, it's because you can't appreciate the great advantage of just pulling a list of links form a database, apply one css statement to it and let jQuery do all the 'heavy lifting' for you in building the gallery.
    I forgot to mention that this site worksand look the same on every browser and platform... well not really, Opera and IE6 doesn't properly render the reflection of the images (wich again is just a piece of javascript that automatically reflects each image you want)

    If you look at the source of the projects.php page, you'll see it's just a list with indented lists.

View thread