for loop inside scroll function
<p>How can i multipy functions inside the scroll loop?</p>

<p>I have:</p>

<pre><code>$(window).scroll(function() {
b1Center = $("#block-1").offset().top - ( $(window).height() - divHeight )/2;
b1Bottom = $("#block-1").offset().top - $(window).height()
b1Top = $("#block-1").offset().top + divHeight;
if(getScrollTop() &gt; b1Bottom &amp;&amp; getScrollTop() &lt; b1Top){
$("#block-1 .txt").css('marginTop', ( (getScrollTop()) *(1.6)) + 'px');
}...
</code></pre>

<p>That needs to be inside scroll function redy all the time and i have the same block for all buttons so: </p>

<p><a href="http://jsfiddle.net/Dx3hr/27/" rel="nofollow">http://jsfiddle.net/Dx3hr/27/</a></p>

<p>Hope this will make more sense.</p>
