Advertisement

Need to assign different attributes to each draggeable boxes

Moderators: Calcifer, slothy

Need to assign different attributes to each draggeable boxes

Postby ManuG » Mon Sep 03, 2007 1:36 pm

Hi all !
I really like this drag'n drop scripts, but there's something I can't understand. And I really need help please :cry:

I need to set a different attribute to all of the drageable elements. I mean, I'm working on a puzzle game on line, and in the upper container, you must see all the parts and then drag them to the bottom construction container.

If I set for exemple :
#box1{
position:absolute;
left:583px;
top:248px;
width:150px;
height:104px;
z-index:2;
cursor:pointer;
}
#box2{
position:absolute;
left:203px;
top:248px;
width:150px;
height:104px;
z-index:2;
cursor:pointer;
}
I can drag those parts but they wont drop to the good place. In fact, for each elements that I set with an attribute, it seems that they drop in the right place but not in the visible dropbox. everything is in order but with a BIG padding right from the dropboxes.

Of course if I don't set any attribute, everything works fine, but I abolutely need to place the drageable boxes in there own place in the upper container

What's wrong ? Can you help ? Is there something to change in the JS ?
Thanks in advance and excuse my english ;-)
ManuG
 
Posts: 1
Joined: Mon Sep 03, 2007 1:22 pm

Return to Drag and drop scripts

Who is online

Users browsing this forum: No registered users and 4 guests