From fb30c5747d1ea1973b5da88dec074d55812a3457 Mon Sep 17 00:00:00 2001 From: Maxim Date: Thu, 21 Nov 2013 00:13:56 +0200 Subject: [PATCH] Changes In the first step, only the title has changed. The image does not change. --- coin-slider.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coin-slider.js b/coin-slider.js index 7d65560..3d1b975 100644 --- a/coin-slider.js +++ b/coin-slider.js @@ -146,7 +146,7 @@ squarePos[el.id] = 0; appInterval[el.id] = setInterval(function() { appereance(el,order[el.id][squarePos[el.id]]); },params[el.id].sDelay); - $(el).css({ 'background-image': 'url(' + images[el.id][imagePos[el.id]] + ')' }); + if (typeof(direction) == "undefined") { imagePos[el.id]++; @@ -166,6 +166,8 @@ imagePos[el.id] = images[el.id].length-1; } + $(el).css({ 'background-image': 'url(' + images[el.id][imagePos[el.id]] + ')' }); + $('.cs-button-' + el.id).removeClass('cs-active'); $('#cs-button-' + el.id + "-" + (imagePos[el.id] + 1)).addClass('cs-active');