PDA

View Full Version : Drag And Drop Help?



lolwut
06-01-2008, 09:51 PM
Right well what I want to do is make a script where the users can move the images around and save them, and when they save them, it saves the X and Y co-ord's of the images into a database.
I got a drag drop script but it doesn't output the co ordinates.
Anyone help me?
NOTE: This wont be a Habbo Homes system.

Moved by Agesilaus (Forum Moderator) from Designing & Development: Please post in the correct forum next time.

Forge
06-01-2008, 09:52 PM
http://www.techtuts.com

theres a tutorial on drag and drop. Have a read ;)

dannyisnotamazing
06-01-2008, 09:53 PM
You use your mouse

Moh
06-01-2008, 09:59 PM
Heres javascript for saving i think..



function save(){
var x=0;
var data='';
for (x=0; x<activefurni.length; x++)
{
data = data + activefurni[x] + "," + dd.elements[activefurni[x]].y + "," + dd.elements[activefurni[x]].x + "," + dd.elements[activefurni[x]].z + "¬" ;
}

loadurl('save-home',"datastrip=" + data);
}

(From Habbo Homes system)

MrCraig
07-01-2008, 04:01 PM
LOL, everyone wants to do drag and drop now =]

Good luck with it though.

Moh
08-01-2008, 02:59 AM
The Tech Tuts one is crap :p
It dosn't work in IE very well, it dosnt save + loads more :P

http://habbcrazy.net/dnd/

Want to hide these adverts? Register an account for free!