In article <82fbf7c.0310010315.24cdf747@posting.google.com> ,
roger128shrubber@hotmail.com (Roger Shrubber) wrote:
[color=blue]
> 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 event
> to keep the ghost image under the mouse pointer. There are three
> problems:
>
> (1) if the ghost image is dragged so it is partially off the edge of
> the screen, scrollbars appear. This not only looks bad, it can cause
> the page to autoscroll on IE, which means the image moves further,
> which means the page scrolls more, which means... so I need the image
> to be ignored for the purposes of working out how large the page is.
> Is this possible?[/color]
Make the image unable to be dragged across a certain boundary.
[color=blue]
>
> (2) the ghost image should be directly underneath the mouse pointer,
> but then it blocks events that should go to objects underneath it (the
> objects the user is trying to drop it on). Moving it to one side
> doesn't really help if the user moves the mouse quickly. I need the
> ghost image to be ignored for event purposes. Is this possible?[/color]
Have you tried setting the ghost image for instance 50px left of the
mouse pointer (thus, the mouse is not covering it) and then offset the
image 50px to the right, using relative positioning (CSS)?
Don't know if that helps.
Make sure the new offset also works with the suggestion of the boundary
I did earlier.
[color=blue]
> (3) when the ghost image spans two frames (I use multiple ghost
> images, actually), the frame border appears on top of it. I suspect
> it is not possible to work around this ;-)[/color]
Don't use frames.
--
Kris
kristiaan@xs4all.netherlands (nl)