Solved

Scroll page with cursor position

Posted on 2008-10-02
2
479 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Changing the format from a text box to a drop-down menu 9 37
Jquery Calculation 3 43
Natural height and jquery 6 41
Drag & Drop Error 5 33
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
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 how to look for a specific file type in a local or remote server directory using PHP.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

752 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