Solved

Scroll page with cursor position

Posted on 2008-10-02
2
485 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
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 learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

630 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