4 Replies Latest reply on Dec 10, 2012 8:56 AM by mrblix

    How to find a horizontal scroll position for a div?




      This query relates to JonAddy's question about triggering symbols at specific scroll locations: http://forums.adobe.com/message/4909123#4909123


      I'm trying to do something similar, except in place of var y_scroll_pos = window.pageYOffset; I'd like to call the horizontal position of just one scrolling div - let's call it "scrollingbox".


      I think I need to use scrollLeft - but how would one rewrite this to find the property for a single div and not the whole window?


      The closest I've got is var x_scroll_pos = sym.$("scrollingbox").scrollLeft(), but it doesn't seem quite right (please excuse my JS ignorance!)


      Thanks in advance,