Nieuw lid |
|
$(function(){
var $container = $('#bg'); //ID to your containing DIV
var i = 1;
var scrollInterval = setInterval(function(){
var currentClass = 'img'+i;
if(i >= 3){//Number of images +1
i = 0;
}
var ii = i+1;
var nextClass = 'img'+ii;
$container.removeClass(currentClass);
$container.fadeIn().addClass( nextClass);
i++;
},5000); //Time Interval between fade
});
$(function(){ var $container = $('#bg'); //ID to your containing DIV var i = 1; var scrollInterval = setInterval(function(){ var currentClass = 'img'+i; if(i >= 3){//Number of images +1 i = 0; } var ii = i+1; var nextClass = 'img'+ii; $container.removeClass(currentClass); $container.fadeIn().addClass( nextClass); i++; },5000); //Time Interval between fade });
$container.fadeIn() Werkt niet iemand een idee hoe dit komt? Of hoe ik het toch gefade krijg, http://ajax.goo...ery.min.js is genoeg geen extra js bestanden.
Dit alles hier vandaan getrokken.
Greetz, bvd WeedSide
|