image dragging outside of window, scroll bars

E

ed

Hi,

I'm working on a script that involves dragging an element around a
page. When it is dragged so that part is out of the window, the
scrollbars are activated. Is there a way to turn off this behavior?

Thanks!

-e
 
R

Randy Webb

ed said the following on 6/22/2007 4:49 PM:
Hi,

I'm working on a script that involves dragging an element around a
page. When it is dragged so that part is out of the window, the
scrollbars are activated. Is there a way to turn off this behavior?

CSS:

overflow: hidden;
 
L

-Lost

ed said:
Hi,

I'm working on a script that involves dragging an element around a
page. When it is dragged so that part is out of the window, the
scrollbars are activated. Is there a way to turn off this behavior?

I am not sure if there is a method to disable scrollbars, but you can
create a bounding box.

http://examples.qcodo.com/examples/advanced_ajax/move.php

I have noted that, that code behaves wonky if you resize the window, but
perhaps it can give you a starting point.
 
E

ed

I am not sure if there is a method to disable scrollbars, but you can
create a bounding box.

http://examples.qcodo.com/examples/advanced_ajax/move.php

I have noted that, that code behaves wonky if you resize the window, but
perhaps it can give you a starting point.

@Randy

I am not sure how CSS overflow would be applied, since I am looking to
do this to the entire window, and I still want the content to
determine the window height (I want to use this on many pages).

@Lost

Thanks for the link. As I am thinking of applying this to different
pages, I am not sure that I want to add a bounding box, but I will
take a look at the code. I am thinking that what I am probably going
to have to do is write a function to shrink the <div> (which is what I
am moving) 1 pixel for each pixel it should have "moved" off of the
bottom of the screen. That way it looks like it's dropping off of the
page, but it really isn't. Heh, I'll be interested in seeing if I can
get that to work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,886
Members
47,419
Latest member
ArturoBres

Latest Threads

Top