detect layer A is on layer B ..then .. How ?
how can i do this, i wanna drag layer into another, then i`ll get alert !
the idea that i have some images, and i had put trash icon on down left of the browser, when i drag the image into the trash the image will be delete via php code, put i don`t how to make this with js , any idea ?
You mean: When
Originally posted by Richi
...when i drag the image into the trash the image will be delete via php code
the mouse button is released and the image is dragged on top of the trash can => delete image?
On the mouse up event, check if (pixelLeft, pixelTop) * for the div with the image is between (pixelLeft, pixelTop) and
(pixelLeft + width, pixelTop + height) for the trash can div
* or (style.left, style.top)
Need help with drag & drop script?
thx alot ...
what i need is in ths page , i`ll try to use it
thx again )
i have now 1 problem , the trash layer is down right, i need to make scroll down while scrolling, but in this way the Y and X will change , then how ?