-
Drag And Drop Help?
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.
-
http://www.techtuts.com
theres a tutorial on drag and drop. Have a read ;)
-
-
Heres javascript for saving i think..
PHP Code:
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)
-
LOL, everyone wants to do drag and drop now =]
Good luck with it though.
-
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/