simple load on the fly

showViewedPropImg: function() {
if(J.s(“.listing”).length == 0) {
return false
}
var a = J.s(“.listing”).eq(0).get().scrollTop;
var b = parseInt(J.s(“.listing”).eq(0).get().style.height);
J.g(“test_div”).down(“.list_li”).each(function(f, g) {
var e = g.down(“.dt_img img”).eq(0);
var d = e.attr(“src”);
if(typeof d === “undefined” || d == null || d.length == 0) {
var c = g.offset();
if((c.y – a) >= 0 && (c.y – a) <= (162 + b)) {
e.attr(“src”, e.attr(“data”)).removeAttr(“data”)
}
}
})
},

J.s(“.listing”).eq(0).on(“scroll”, function(d) {
if(J.g(this).down(“.list2″).length > 0) {
return false
}
if(c == 0) {
if(a) {
clearTimeout(a)
}
a = setTimeout(function() {
b.showViewedPropImg();
c = 0
}, 200);
c = 1
}
});

Comments are closed.