Nic
04-01-2005, 09:19 AM
Script: Dragable elements script
http://dynamicdrive.com/dynamicindex4/image3.htm
I'm trying to add a drag and drop script to a jigsaw puzzle for a school website project, and at first it seemed to work fine- I could drag things around as much as I wanted.
After a few moments, though, I dragged one of the pieces into the wrong spot and tried to drag it somewhere else, but it was stuck. It just became a regular image. And I realised the cursor script I was using wasn't working either.
I tried dragging the other elements around the page, and they all had the same problem: I could drag it once, but once I let go, I could drag it anywhere else.
Has anyone else been experiencing the same problem and/or knows how to fix it? Thanks.
EDIT: I just tried applying the same script to a same file without using the cursor script, and I still had the same problem. I then tried making a new file and applying the dragable elements script to an image and some text, and I'm not having any problems. I don't see what's causing the problem, though the following might be some contributing factors, I don't know:
*There are quite a lot of images with the drag and drop script applied (16)
*There are several images other than those with the dragable elements script, though not very many
That's all I can think of, it's really quite annoying.
http://dynamicdrive.com/dynamicindex4/image3.htm
I'm trying to add a drag and drop script to a jigsaw puzzle for a school website project, and at first it seemed to work fine- I could drag things around as much as I wanted.
After a few moments, though, I dragged one of the pieces into the wrong spot and tried to drag it somewhere else, but it was stuck. It just became a regular image. And I realised the cursor script I was using wasn't working either.
I tried dragging the other elements around the page, and they all had the same problem: I could drag it once, but once I let go, I could drag it anywhere else.
Has anyone else been experiencing the same problem and/or knows how to fix it? Thanks.
EDIT: I just tried applying the same script to a same file without using the cursor script, and I still had the same problem. I then tried making a new file and applying the dragable elements script to an image and some text, and I'm not having any problems. I don't see what's causing the problem, though the following might be some contributing factors, I don't know:
*There are quite a lot of images with the drag and drop script applied (16)
*There are several images other than those with the dragable elements script, though not very many
That's all I can think of, it's really quite annoying.