Skip to content

macloo/jquery-photo-gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Photo Gallery

This small collection of HTML, CSS and JavaScript files is intended to help complete beginners learn how to use jQuery. You can see the live Web pages to observe the differences among the four files.

Version 0 of the photo gallery establishes the basic format in the HTML, but the jQuery for that file -- photos0.js -- is incomplete. It shows us something interesting in its incompleteness, though: When we move something with jQuery, it really is gone from its original place in the HTML.

Version 1 of the photo gallery fixes the problem -- with .clone() -- and gives us a functional photo gallery.

Version 2 adds captions to the photo gallery. The jQuery is changed a bit to enable the big photo and its caption to travel together; this also required a change in the HTML: the tag span was added.

Version 3 adds some style to the gallery. In the jQuery, we create a new DIV to hold the big photo and its caption.

About

Files for learning how to create a very simple photo gallery with jQuery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published