...

View Full Version : make an image dragable



drdre
04-10-2005, 10:51 PM
hello

i'm trying to make an image on a layer (div) dragable... i look into the code from http://dynamicdrive.com/dynamicindex4/image3.htm, but this won't work with any browser but the internet explorer and pc. does anyone have further examples or ideas on how to implement this so it works on pc and mac (firefox, safari, ie)? thx.

Kor
04-11-2005, 09:09 AM
use different object events for IE and Moz

function initdrag(e){
var dragobj = e.target//for Moz and compatible
var dragobj = event.srcElement//for IE and compatible
...
}

hemebond
04-11-2005, 09:22 AM
http://www.walterzorn.com/dragdrop/dragdrop_e.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum