phpknight Posted August 15, 2007 Share Posted August 15, 2007 Is there any way to drag and drop elements that are not abolutely positioned but just in the normal flow? For instance, is there a function to see what the element was that a person clicked the mouse or let go on? I guess I am looking for something like getElementByID but getElementID (mouseCoordinates) that returns the id of the element of the mouse or something. Link to comment https://forums.phpfreaks.com/topic/65042-drag-and-drop-coordinates/ Share on other sites More sharing options...
php_tom Posted August 15, 2007 Share Posted August 15, 2007 ...drag and drop elements... You mean something lie the car in this link? http://homepage.ntlworld.com/bobosola/pngtestfixed.htm Please explain more. Link to comment https://forums.phpfreaks.com/topic/65042-drag-and-drop-coordinates/#findComment-324719 Share on other sites More sharing options...
phpknight Posted August 15, 2007 Author Share Posted August 15, 2007 Right. According to _Javascript: The Definitive Guide_, it says this "allow absolutely positioned elements [in css] to be ragged by the user" (421). Other sites mention the same thing. I want to know if I can do this with float and other elements as well. Therefore, I would probably need functions like what I mentioned above. Or, can you just change the position to absolute once a user starts dragging and dropping? Link to comment https://forums.phpfreaks.com/topic/65042-drag-and-drop-coordinates/#findComment-325179 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.