I have an issue with a jquery image slide plugin i'm working on where the images scroll left creating the slideshow. IE and FireFox work fine but Safari/Chrome(WebKit) just wont work.
This the call in question
$(".nav li").live("click", function () {
if (lastSelected != null) $(lastSelected).removeClass("selected");
$(this).addClass("selected");
place = parseInt($(this).text());
if (place > last) {
offset = parseInt(place - last);
direction = "-=";
}
else {
offset = parseInt(last - place);
direction = "+=";
}
// this is where it only works for IE and FF
$(".slideshow img").each(function () {
$(this).animate({
left: direction + (offset * imageWidth) + "px"
});
});
// Am I doing something wrong hmm?
reset = true;
last = place;
lastSelected = $(this);
}).css("cursor", "pointer");