0 items » view cart

TV

/*
* Easy Slider 1.7 - jQuery plugin
* written by Alen Grakalic
* http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding
*
* Copyright (c) 2009 Alen Grakalic (http://cssglobe.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Built for jQuery library
* http://jquery.com
*
*/

/*
* markup example for $("#slider").easySlider();
*
*
*
*/

(function($) {

$.fn.easySlider = function(options){

var slides = $("#slider > img");
var currentIndex = 0;
var slideCount = slides.length;
var timePerSlide = 5000;
var fadeDuration = 1000;

var nextSlide = function(){
var nextIndex = currentIndex + 1;
if (nextIndex == slideCount)
nextIndex = 0;

$(slides[currentIndex ]).fadeOut(fadeDuration);
$(slides[nextIndex ]).fadeIn(fadeDuration);

currentIndex = nextIndex;
setTimeout(nextSlide, timePerSlide);
};

setTimeout(nextSlide, timePerSlide);
})();

};

})(jQuery);

$(document).ready(function(){
$("#slider").easySlider({

var slides = $("#slider > img");
var currentIndex = 0;
var slideCount = slides.length;
var timePerSlide = 5000;
var fadeDuration = 1000;

var nextSlide = function(){
var nextIndex = currentIndex + 1;
if (nextIndex == slideCount)
nextIndex = 0;

$(slides[currentIndex ]).fadeOut(fadeDuration);
$(slides[nextIndex ]).fadeIn(fadeDuration);

currentIndex = nextIndex;
setTimeout(nextSlide, timePerSlide);
};

setTimeout(nextSlide, timePerSlide);
})();

});
});

  • Negrete Love Sprung Tee Header
  • TheOthers1
  • TheOthers2
  • TheOthers3
  • TheOthers4
  • TheOthers5
  • TheOthers6

Powered by Big Cartel