473,379 Members | 1,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

image dragging outside of window, scroll bars

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

Jun 22 '07 #1
3 1878
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;

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 22 '07 #2
ed wrote:
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/a..._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.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Jun 22 '07 #3
ed
On Jun 22, 5:27 pm, -Lost <maventheextrawo...@techie.comwrote:
ed wrote:
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/a..._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.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
@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.

Jun 23 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Roger Shrubber | last post by:
I have a page with images that the user can drag from one frame to another. I need them to see a "ghost image" of the image they are dragging, while the original stays put. I use the onmousemove...
9
by: Deepa | last post by:
Hi All, I'm facing problem displaying image of size 5000X5000 .My window size is smaller than image size so i'm not able to see the complete image.i can use scroll bars to view the image but i...
2
by: Sachin | last post by:
To display the vertical scroll bar of any control (Print Preview Control in perticular)which window message is set? pls guide -- sachin
0
by: Sin Jeong-hun | last post by:
If FlowLayoutPanel's AutoScroll is set to true, there appears a scroll bar on the right. Normally, users would expect the contents is scrolled while they are dragging the scroll bar. Well, it does,...
2
by: Jonathan | last post by:
I have a form that has controls on it that can be dragged to other locations within the form. The form size is larger than the viewable area so the scroll bars are visible (and autoscroll is...
1
by: makdtripper | last post by:
I create a bitmap image. I can draw and save it successfulyl...i need to know how to resize the bitmap when i add more and more drawings...or how to add scroll bars to a large created bitmap. My...
2
by: usenet | last post by:
When I open a form design window in Access 2003 it *always* has scroll bars, this is even when the form itself is tiny. It's as if the 'page' on which the form is being designed is very large. ...
4
by: crazychrisy54 | last post by:
Hi there, I am new to JavaScript and wonder if it could be used to solve my problem, any help would be much appreciated! I have a html web page which contains a table on the left hand side and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.