,
|

Barcelona jQuery Photo Gallery

A great way to display photos online is definitely by using a Photo Gallery.

jQuery and CCS can make your life easier and save you a lot of repetitive coding by using plugins.

Here we are going to show you how a jQuery plugin can help you create a simple but elegant Photo Gallery to display some of the best pictures in Barcelona's lifetime.

GalleryView is a plugin that provide an extensive set of options. It will allow you to adjust photos, thumbnail sizes, control not only speeds, but also element positions and transition styles.

Requirements

1. Install jQuery in Blogger
Add this code before </head> tag in your template

<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'></script>


2. Install GalleryView plugin for jQuery
For an easy GalleryView installation in your blogger. Add the following code before </head> tag in your template
<!-- InstanceBeginEditable name="head" -->
<script src='http://spaceforaname.com/galleryview/galleryview/js/jquery.timers-1.2.js' type='text/javascript'/>
<script src='http://spaceforaname.com/galleryview/galleryview/js/jquery.easing.1.3.js' type='text/javascript'/>
<script src='http://spaceforaname.com/galleryview/galleryview/js/jquery.galleryview-3.0-dev.js' type='text/javascript'/>
<link href='http://spaceforaname.com/galleryview/galleryview/css/jquery.galleryview-3.0-dev.css' rel='stylesheet' type='text/css'/>
<!-- InstanceEndEditable -->

Implementation

Create an unordered list of images and add the following function call to your JavaScript code:

$('#gallery').galleryView();

Demostration


  • Barcelona Team
  • Barcelona Training
  • Press Conference
  • Pep Guardiola
  • Messi number 1
  • logo
  • Golden Boot
  • Marvel Boy
  • Andres Iniesta
  • Messi Goalkeeper
  • Cesc Fabregas
  • Training

Javascript source Code
<script>
$(function(){
   $('#myGallery').galleryView({
      panel_width: 550,
      panel_height: 300,
      autoplay: true
   });
});
</script>


For full development of this plugin please visit http://spaceforaname.com/galleryview/

4 comments:

  • Mauro218   April 11, 2012

    Very nice Photo Gallery

  • nglade   April 11, 2012

    Cool tips will try it on my blog

  • Steve   April 15, 2012

    Nice tip Jhonny. I will try and use it in my project!

  • Oge Marques   April 18, 2012

    Excellent tip! I hope to see it applied to some projects in the class!

Post a Comment