hi guys,
i have this code that was made from tips here long time ago.
var tm
var tn;
var rot = true;
var rot2 = true;
var th = 482;
var tmh = 0;
var $paneTarget = $('#lyr1');
var slideshow = {
delay: 5000,
actions:[],
run: function() {
if (slideshow.actions.length) {
var current = slideshow.actions.shift();
current();
slideshow.actions.push( current );
tm = setTimeout(slideshow.run, slideshow.delay);
}
},
play: function(n) {
if (n!=true)
$(document).clearQueue();
if (slideshow.actions.length) {
tm = setTimeout(slideshow.run, slideshow.delay);
}
},
pause: function() {
clearTimeout(tm);
$(document).clearQueue();
}
};
$(".sideimg").each(function(){
var that = this;
slideshow.actions.push(function(){
if (tn != "") {
out(tn);
**}**
over($(that).attr("id"));
n = $(that).attr("id").substring($(that).attr("id").indexOf("img")+3,$(that).attr("id").length)
info("image.asp?id="+n+"","info");
var $target = $paneTarget.find('#'+$(that).attr("id"));
var timg = document.getElementById($(that).attr("id"));
if (timg.offsetTop>th||timg.offsetTop+timg.height>th||timg.offsetTop<tmh) {
$paneTarget.stop().scrollTo( $target , 800 );
tmh = timg.offsetTop;
}
$("#rimg").fadeOut("slow",function () {
slideshow.pause;
$("#rimg").attr("src",$(that).attr("bsrc")).load(function(){
$("#rimg").attr("alt",$(that).attr("alt"));
$("#rimg").fadeIn("normal");
slideshow.play;
});
});
tn = $(that).attr("id");
});
});
the error is: "out of memory at line: 37"
that line is the bold } (bold is not working because it is inside a code line so look for **}**
)
it is not coming up after first loop or even the second - it takes long time until it will show up... maybe 20 min?
i had it runing in IE got the message... had it in Chrome and seems to be ok... had it in FF with firebug to see the DOM but no error after an hour
i realy don't know what to do...