HighDots Forums  

Drag elements over the viewable screen...

alt.html.dhtml alt.html.dhtml


Discuss Drag elements over the viewable screen... in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Booli
 
Posts: n/a

Default Drag elements over the viewable screen... - 01-12-2004 , 09:43 AM






I need to drag elements on a site I'm currently working on. The
problem isn't to make things move around. This was done a lot of time
and you can find a lot of information over the Web. My problem is that
I need to be able to drag something from the bottom of a page to the
top.

When I come to the top of the viewable screen, the page do no scroll
up (or down when I'm at the bottom of the screen). I have searched
forums and turorials but I can't find any exemple on how to accomplish
that.

Anyone got a link or a quick exemple on how to scroll the page when
comming to top and/or bottom of the page when dragging an element ?

Reply With Quote
  #2  
Old   
William Morris
 
Posts: n/a

Default Re: Drag elements over the viewable screen... - 01-12-2004 , 09:55 AM






You just need additional content at the top and bottom of page, before and
after the real content, something as simple as &nbsp;<p>&nbsp;.

"Booli" <booli_101 (AT) hotmail (DOT) com> wrote

Quote:
I need to drag elements on a site I'm currently working on. The
problem isn't to make things move around. This was done a lot of time
and you can find a lot of information over the Web. My problem is that
I need to be able to drag something from the bottom of a page to the
top.

When I come to the top of the viewable screen, the page do no scroll
up (or down when I'm at the bottom of the screen). I have searched
forums and turorials but I can't find any exemple on how to accomplish
that.

Anyone got a link or a quick exemple on how to scroll the page when
comming to top and/or bottom of the page when dragging an element ?



Reply With Quote
  #3  
Old   
Woolly Mittens
 
Posts: n/a

Default Re: Drag elements over the viewable screen... - 01-14-2004 , 01:01 AM




"Booli" <booli_101 (AT) hotmail (DOT) com> wrote

Quote:
When I come to the top of the viewable screen, the page do no scroll
up (or down when I'm at the bottom of the screen). I have searched
forums and turorials but I can't find any exemple on how to accomplish
It could be as simple as comparing the "scrollTop" distance to the mouse's
position over the document and using "scrollTo" accordingly. But I'm not
going to write it, unless the spare-time-fairy visits me.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.