Log in

View Full Version : drag queen



moscarda
02-02-2009, 01:35 AM
1) Script Title:
::Dragable elements Script

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex4/image3.htm

3) Describe problem:

this just gives the image a z-index of 100, allowing it to be dragged over top any other important elements, like navigation bars, etc. is there a way to constrain draggable content within certain areas, like say, an html table?

Nile
02-02-2009, 01:36 AM
How about this script(look at the bottom of the page):
http://www.dynamicdrive.com/dynamicindex11/domdrag/

moscarda
02-02-2009, 01:39 AM
you must just sit around waiting for me to ask stupid questions.

although, since i don't know anything, i guess the stupid questions are just as valid as the smart ones.

moscarda
02-02-2009, 01:40 AM
except i did look at that script and dont know if it can suit my purposes... i just want to keep the draggable items away from the top 30 pixels of the page, where the navigation bar is.

Nile
02-02-2009, 02:00 AM
No questions are stupid.



<script type="text/javascript" src="http://www.dynamicdrive.com/dynamicindex11/domdrag/dom-drag.js"></script>
<img id="example" src="http://unlinkthis.net/templates/style/images/unlinkthis.png" style="position: relative" />

<script language="javascript">
var aThumbv = document.getElementById("example");
Drag.init(aThumbv, null, 0, 1000, 30);
</script>