PDA

View Full Version : Drag and Drop, Disapearing background image



icandothat
05-21-2008, 10:02 PM
1) Script Title:
dom-drag.js
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex11/domdrag/dom-drag.js
3) Describe problem:
I made a nifty little box that looks like a browser pop up with a blue bar on top and the little red 'X' image in the corner. When I drag this nifty little box around, using the dom-drag script by background image
background-image:url('../../imgs/windowsStyleBlueBorder.jpg');
vanishes.
Now I'm using the script like this
Drag.init(o,oRoot);
because I want the user to be able to move the box by dragging the title bar and still be able to select text inside the div.

Anyone ever seen this?

icandothat
05-21-2008, 10:56 PM
I fixed it. Well I worked around it. Instead of placing the background image in the dragable item I placed it in the root object and since you can see though the dragable item the effect is the same w/o the bug.

I like this script it's easy and effective.