Hi,
I have been assigned the daunting task of applying coordinate movements of a draggable div with a small box to the scrolling of the current window. Basically the small box represents the viewable content of the website and the draggable div represents the cursor. As the draggable div is moved around the confines of the small box the current window should scroll to a proportional position. Thus if the user drags the div to the top left hand corner of the small box the top right corner of the viewable content is shown. This form of navigation has been devised because the webpage content is expected to fill several screens.
I found an example of what I'm trying to explain here, applied to an image.
How to do Google Maps-Style Scrolling Windows with JavaScript and DHTML
From this I have been able to create the following which works in Firefox but doesn't in IE or Safari.
I hope you can help.
Thanks,
Sean
I have been assigned the daunting task of applying coordinate movements of a draggable div with a small box to the scrolling of the current window. Basically the small box represents the viewable content of the website and the draggable div represents the cursor. As the draggable div is moved around the confines of the small box the current window should scroll to a proportional position. Thus if the user drags the div to the top left hand corner of the small box the top right corner of the viewable content is shown. This form of navigation has been devised because the webpage content is expected to fill several screens.
I found an example of what I'm trying to explain here, applied to an image.
How to do Google Maps-Style Scrolling Windows with JavaScript and DHTML
From this I have been able to create the following which works in Firefox but doesn't in IE or Safari.
I hope you can help.
Thanks,
Sean
Comment