Hi - Not much of a Javascipt guy so I could really use some help.
I have a script that executes when a user hits a button. It's fades the background and displays a box that give a user a message.
The problem I'm having is this. I have a page with a form on it. The form is long so you have to scoll down to hit the button. When the user clicks the button you don't see the fade or the pop-up becuase it's at the top of the page. If you scoll up you can see it, however I need the fade and popup to appear right where the scroll position is.
You can do it by finding the scroll of the page and the window height. Replace your current JS with the following. You may want to include what adrian has written to make it fully cross browser supportive. This has only been tested working in IE8.
~A~
Open in new window