If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hi Sup3rkirby, thank you for your quick reply, but I meant to modify the script above that: SCROLL-VISIBLE PLUGIN. It's a script that is supposed to make it that the class that is called and is attached to a element, like a progress bar, it will start the element only after it calculates that it's visible on the screen. So for example if the bar were to be totally deep down it would start animate just when the user comes to that part of page by scrolling.

But it still doesn't work..(I changed the .module to the correct class applied in on the element which is #progress and also further in the el.addClass I put running, which should start the process, but nothing happens)...

I feel like I need to ask: what exactly is it that you are wanting to happen?

As far as a scenario goes, you are telling me that if the progress bar is 'below the fold' (meaning it is not visible on the page when it loads and instead you must scroll down to see it) then the progress bar will not start. However, using the code you provided, after I made the change in my last post I noticed the progress bar will start when the page loads (whether it is visible or not).

So this makes me thing perhaps you are asking about something else...

"Given billions of tries, could a spilled bottle of ink ever fall into the words of Shakespeare?"

Yes it starts, but I don't want it to start after the page loads. I want it to wait until the user that visits the page scrolls to the progress bar to actually see that nice animation. If it loads right away when he lands on the page he will never see it because I plan to place the progress bar a few pages down the actual page.

I want it to start loading when he scrolls the page to the bottom and really his screen is at the progress bar and he can see it. The script is supposed to do the calculation so that it knows at which point the screens is and such. I just don't know why it's not working.

I went and found the source code for that plugin you were using because it seems that some of the changes you made may have been partly why it wasn't working. The other thing was the code to set the window.scroll event needed to be moved.

In the end your source code will look something like this (tested and working):