Detect 30% from browser window bottom using scrollTop()
<p>My code can detect browser window bottom like below and then run <code>last_msg_funtion();</code> : </p>

<pre><code>$(window).scroll(function(){
    if  ($(window).scrollTop() == $(document).height() - $(window).height()){
       last_msg_funtion();
    }
}); 
</code></pre>

<p>My problem is user need to scroll down until bottom(<em>footer</em>) then <code>last_msg_funtion();</code> will run but i want adjust the detection maybe around 30% from bottom</p>

<p>See image below :
<img src="http://i.stack.imgur.com/x5afI.jpg" alt="enter image description here"></p>

<p>My Site : <a href="http://www.micespanel.com/classified.php">Click Here</a></p>

<p>Full Code : <a href="http://www.9lessons.info/2009/07/load-data-while-scroll-with-jquery-php.html">Click Here</a></p>
