Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Scroll page with cursor position

Posted on 2008-10-02
2
Medium Priority
?
490 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
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…

718 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