Я бы сделал это так:
высота документа / высота элемента + 200px = x поместите элемент X раз в ваш документ.
Вот и все.
Говорят в jQuery это выглядит так:
попробуйте здесь: http://jsfiddle.net/aF68z/
var repeatMe = function ( $o, space ){
var oHeight,dHeight, multiplicator, res, html, $parent;
dHeight = $(document).height(); //height of you document
oHeight = $o.height(); //height of the element that shoud repeat
multiplicator = Math.floor(dHeight / (oHeight + space)); //how many time the element can repeat (including the margin)
$parent = $o.parent(); //gets the parent that finally will hold all repeating items
html = $parent.html(); //gets the HTML code of the element that repeats
/* appending and cloning are very CPU heavy and it makes no sense to do so only for a visual matter, "string" + "string" etc... is very slow if the string becomes long, this is a simple trick how to avoid this: */
res = [];
for (var i = 0; i < multiplicator; ++ i) {
res.push(html);
}
html = res.join("");
$parent.html(html); //appending the HTML of the all the repeated elements to the parent again.
};
repeatMe( $("div.deco div:eq(0)"),200 );
PS: По крайней мере, попробуйте что-нибудь самостоятельно в следующий раз.