Bug with DynGroups
-
Hello,
by advance, sorry for my poor english.I’m using AdRotate on my website, and I noticed an error in the dyn-group library (jquery.adrotate.dyngroup.js):
At first, a random ad is selected to be shown:
$cont.find(".c-" + Math.floor(Math.random()*length+1)).show();Then, ads begin to rotate.
The problem is that the counter variable is defined to “1” instead of being defined as that first random selected ad, making an error while the first rotation cycle:If the first ad selected is the 4rth, this one won’t be hidden until the 4rth ad rotation, since the “transitionTo” function try to hide the first ad (because of counter=1) and show the second one.
But the 4rth ad will still be shown.This is how i solved the problem:
line 41, i replaced
$cont.find(".c-" + Math.floor(Math.random()*length+1)).show();
bycounter = Math.floor(Math.random()*length+1); $cont.find(".c-" + counter).show();No problem anymore.
Regards,
The topic ‘Bug with DynGroups’ is closed to new replies.