Mr_Splash
asked on
Scroll page with cursor position
I have an iframe that is 100px width and 456px wide.
I need it to scroll up if the cursor goes into the top 137px and the scroll down if the cursor goes past Y pixel 419.
I've search for an appropriate script and have tried learning javascript so I can write one myself by I think it's too advanced for me.
Would anyone be able to help me with this?
I need it to scroll up if the cursor goes into the top 137px and the scroll down if the cursor goes past Y pixel 419.
I've search for an appropriate script and have tried learning javascript so I can write one myself by I think it's too advanced for me.
Would anyone be able to help me with this?
You will have a great deal of problem getting a working cross-browser script for this, as most of the window position calls are MS IE specific. Why not simply enable the scrollbars in the iframe, and let the person scroll themselves - or else, make the Iframe taller, so it will fit the entire content of the page going into it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.