Click to See Complete Forum and Search --> : onDrag alternatives


freefall
11-29-2003, 11:44 PM
Hello,
Is there a simple alternative to the onDrag and onDragStart events? Those are not "valid HTML 4.01", and they're not supported by anything but good old IE.

I suppose I could code a "generic" drag event, manipulating the mouse events, but an actual alternative would be better.

Implemented here:
www.degreethree.com
You'll notice the menu and the client login pop div are moveable in IE only, there's plenty of other moveable objects on other pages as well, it's not really very important at all, except I would like to W3C validate and I can't with those events (unless I hide them in my script file, muahaha! but I'd rather not)

Thanks,
Ian Paterson

Khalid Ali
11-30-2003, 02:41 AM
I am afraid you will have to create a generic drag and drop function utilizing

onmousedown
onmlusemove
and
onmouseup

freefall
11-30-2003, 07:26 AM
okay that's fine, I just wanted to make sure I wasn't missing out on anything. I might work on that some day when I'm tired of writing content!

Thanks,
Ian