解决方案 »

  1.   

    其实,你自己都已经做出来了啊        var content = document.getElementsByTagName("div");
            var sina;
                    select(content[content.length], function (txt, tar, mouseP) {
                        sina = document.getElementById("weiboshare");
                        AllSee = mouseP;
                        sina.style.left = document.body.scrollLeft + mouseP.x + 5 + "px";
                        sina.style.top = document.body.scrollTop + mouseP.y - 30 + "px";
                        sina.style.display = "block";
                        share(sina, { title: txt });
                        //window.alert(sina);
                    }, function () {
                        ;
                    });
      

  2.   


    0x800a138f - JavaScript 运行时错误: 无法设置未定义或 null 引用的属性“onmouseup”
      

  3.   

    效果是做了,但我是所有列都能选,不满足要求。 现在是控制不到列, 我一个页面有很多框架,DIV也很多。 uicTable 是唯一的。就是要控制到最后一列。
      

  4.   

    报错啊。0x800a138f - JavaScript 运行时错误: 无法设置未定义或 null 引用的属性“onmouseup”
      

  5.   

    有没有办法指定这个TABLE中的最后一个TD的写法啊? 好郁闷。。如何写呢? TD和TR我都试了,都不行。
      

  6.   

    上面写改成content[content.length-1],如果想用jquery,
    var tds = $("#uicTable").find('td');
    var last = tds[tds.length - 1];
    或者
    var tds = document.getElementById('uicTable').getElementsByTag('td');
    var last = tds[tds.length - 1];