Having an absolute nightmare and feel like smashing my computer up! Im trying to see if my .wrapper div is minus X pixels left off screen.If it is I want to run one function, if not, do nothing. Ive the following so far but it doesnt work at all. \[code\] var width = $(window).width(); setInterval(function(){ if (parseInt($('.wrapper').css('left')) <= parseInt(width*2)){ alert ('f**k'); } else { alert ('off'); } },1000);\[/code\]