Hi.
When i drag a tree node into another div object using s_control function, I want to get a relative position for targetHtmlObject
for IE , It works fine. but others not.
How to get?
function s_control() {
this._drag = function(sourceHtmlObject, dhtmlObject, targetHtmlObject) {
targetHtmlObject.style.backgroundColor = “”;
alert(sourceHtmlObject.parentObject.id+“/ x=”+event.x+" , y="+event.y) ;
} ;
this._dragIn = function(htmlObject, shtmlObject) {
htmlObject.style.backgroundColor = “#ddfaff”;
return htmlObject;
} ;
this._dragOut = function(htmlObject) {
htmlObject.style.backgroundColor = “”;
return this;
} ;
}