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. Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.