Jquery Math for some fancy Idea !
<p>I am working on Project where I have JQuery 1-Page Horizontal scrolling website using JQuery .scrollTo plugin.</p>

<p>I want to show Total x-axis pixels traveled by visitor.</p>

<p>To achieve this I have code which shows visitors current position on screen.</p>

<pre><code>jQuery(document).ready(function(){
    $(document).mousemove(function(e){
       $('.status').html(e.pageX);
    });
 })
</code></pre>

<p>What I want is :</p>

<p>Say, My computer res is 1280px wide.
Currently I am on Horizontal Slide 1 so my max distance will be 1280px</p>

<p>But when I move to Slide 2
Though my resolution is constant i.e [1280px] I want to show distance trvelled by visitor is : </p>

<p><strong>2 X screen.width + e.pageX</strong></p>

<p>Same goes for Slide 3 : </p>

<p><strong>3 X screen.width + e.pageX</strong> and so on....</p>

<p>How can I achieve this multiplication &amp; addition using JQuery </p>

<p>Thanks.</p>

<p><strong>EDIT :</strong></p>

<pre><code>jQuery(document).ready(function(){
    $(document).mousemove(function(e){
       $('.status').html(e.pageX+screen.width*2);
    });
 })
</code></pre>

<p>above code is doing all what I want but as <strong>@Kobi</strong> suggest What if User Resize Window ???</p>
