By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,504 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,504 IT Pros & Developers. It's quick & easy.

scrollBy is not working in IE

P: n/a
Hallo.

I just try to implement a scrolling effect to a drag and drop script.
If you try to drag something to an area beneath the visible area of
your browser window, the window should scroll automatically downwards.
Therefor i defined an area (i.e x-pos = 0px - 200px, y-pos = 500px -
600px), where the page should scroll, if you move the cursor in (while
drag and drop (onmousemove)).
While mousemove i check the coordinates and if they are between the
defined values, then scrollBy should effect.
xpos = window.event.clientX;
ypos = window.event.clientY;
if (xpos < 200 && xpos 0 && ypos < 600 && ypos 500)
window.scrollBy(0, 15);

It works great with Firefox (scrolls downwards) but not with IE
(nothing happens).

On page load the page fits into the window and there is no overflow
(and no scrollbar). The overflow appears first when you create some
dynamic content. Could it be that the problem has something to do with
that?

Many thanks for your help and best regards

Mike

Nov 16 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ASM
Michi a écrit :
Hallo.

I just try to implement a scrolling effect to a drag and drop script.
http://www.quirksmode.org/viewport/compatibility.html

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Nov 16 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.