Solved

Scroll page with cursor position

Posted on 2008-10-02
2
465 Views
Last Modified: 2013-11-19
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?
0
Comment
Question by:Mr_Splash
2 Comments
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22629401
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.
0
 
LVL 3

Accepted Solution

by:
Mr_Splash earned 0 total points
ID: 22676395
I've found a solution for this.

http://demos111.mootools.net/Scroller
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now