87,910
社区成员
发帖
与我相关
我的任务
分享
arr[i].onDragStart = function(x,y){
DragStartPos['x'] = x;
DragStartPos['y'] = y;
for(j=0;j<arr.length;j++){
arr[j].style.zIndex=999;
}
document.getElementById(id).style.zIndex=1000;
}
arr[i].onDrag = function(x,y){
jQuery("#"+id).addClass("sd_f");
jQuery("#"+id).removeClass("wform");
}
arr[i].onDragEnd = function(x,y){
DragEndPos['x'] = x;
DragEndPos['y'] = y;
jQuery("#"+id).addClass("wform");
jQuery("#"+id).removeClass("sd_f");
action = new Action(id,"drag",DragStartPos,DragEndPos);
//把动作信息放入actionStack(动作栈)
actionStack.push(action);
//
}