Log in

View Full Version : problem with dragging many layers



AssafBez
11-28-2006, 08:55 PM
Hello every body,

I am trying to make the images in the page
dragable, jump to the top z index and stay there.

I use dreamweaver 8 to make the page.
I created 6 layers with background images and named them correctly.
I chose the body tag each time before placing the drag function.

you can check the link: http://www.bezbox.com/friends/Selina/relocated/relocated_01.html

you would see that the script is not working well in the beginning but after you "touch" once, ie click
every image, it becomes fine and the script works as planed, meaning bring picture to top,
leave it there, as well as fixing the hotspot of the layer when trying to drag.

I know that more than one script in a certain tag is not a good idea,
but as this is the same script maybe it's ok.
I would like to know if I created some kind of a problem? is to many layers just wont work?

Is there a way to fix this annoyance just after the page loads and refresh?

Thank you,
Bez.

djr33
11-28-2006, 10:44 PM
On first glance, I'd say that it's just taking time to load all the images (the files, not the javascript supporting them)... nothing more than that.

AssafBez
11-28-2006, 11:04 PM
Hi there,

I am not a programmer but I am almost sure that it's not the problem,
since even when I test it locally the problem occurs
and it does not matter if you would wait until all the images are loaded.

The problem solves it self ONLY after you click ALL the images at least once!

Somebody know what could it be?

Thanks,

djr33
11-29-2006, 12:46 AM
Oh, hmm... sorry. I didn't read carefully.
The other problem, though, is that they load very slowly ;)

Yeah, I'm not really sure either.

Someone may know, though... probably.