469,356 Members | 2,618 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

scrollBy is not working in IE

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
1 3657
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.

Similar topics

2 posts views Thread by your name here | last post: by
5 posts views Thread by Martin Heuckeroth | last post: by
5 posts views Thread by tshad | last post: by
8 posts views Thread by jojobar | last post: by
3 posts views Thread by vunet.us | last post: by
1 post views Thread by vunet.us | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.