Today is a good day to code

JavaScript Draggable Divs

Posted: December 31st, 1969 | Author: | Filed under: Uncategorized | No Comments »

JavaScript Draggable Divs

Picture of IrvinI was just messing around tonight, to see if I could figure out how everybody is doing their draggable divs. I built a couple of JavaScript objects that you can instantiate, passing them the div name, the starting top, and the starting left position. Once you have done that, you can start instantiating them all over the place.

They are a little twitchy and at the moment they only work in FireFox, but with a little tweaking it can work in other browsers. The problem with IE is that I am not using the createElement with the text in it, such as createElement(“

Draggable Divs