var a;
document.onmouseup=function(){
    if(!a)return;
    document.all?a.releaseCapture():window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);
    a="";
};
document.onmousemove=function (d){
    if(!a) return;
    if(!d) d=event;
    $(a).css("left",(d.clientX-b)+"px");
    $(a).css("top",(d.clientY-c)+"px");
};
function move(o,e,id){
    a=o;
    document.all?a.setCapture():window.captureEvents(Event.MOUSEMOVE);    b=e.clientX-parseInt($(a).css("left"));
    c=e.clientY-parseInt($(a).css("top"));
 }<div style='position:fixed;' onmousedown='move(this,event,"+window.index+")' ></div>怎么让这段代码 可以支持 IE 的浏览器。、
或者给我 一个兼容性强的代码 。网上搜了 一堆 都不能用。。