i am trying to display my products animation with the following code (jquery)
var prodNum = <%=prodNum %>;
var i = 1;
$.timer(5000, function(timer) {
$(".prods").hide("slide", { direction: "down" }, 500, function() {
$(".prods").html("<div class=\"prod\">" + $("#pr" + ((4*i) % prodNum)).html() + "</div>" +
"<div class=\"prod\">" + $("#pr" + ((4*i + 1) % prodNum)).html() + "</div>" +
"<div class=\"prod\">" + $("#pr" + ((4*i + 2) % prodNum)).html() + "</div>" +
"<div class=\"prod\">" + $("#pr" + ((4*i + 3) % prodNum)).html() + "</div>");
$(".prods").show("slide", { direction: "down" }, 500);
i++;
});
});
It works fine with firefox, but in IE i get "Out of memory at line: 13" How can i fix this? I am using version 1.4.2
Thanks