FF:pageX,pageY
IE:window.event.clientX + document.body.scrollLeft - document.body.clientLeft,
window.event.clientY + document.body.scrollTop  - document.body.clientTop
overflow:visible;

解决方案 »

  1.   

    document.body.scrollTop,document.body.scrollLeft取出值还是0。如何解决?我查了不少资料了。注意background="../images/pic/aa.jpg"
      

  2.   

    还有如何让如何让该单元格的大小(width="1294" height="1800"),随图片的大小不同而不同,即该单元格正好是一张背景图。用overflow:visible没有效果,因为我是background="../images/pic/aa.jpg"
      

  3.   

    <img id="yourImage" width="200" height="300" src="./yourPath/yourImage.gif">
    <script>
    function getWidthHeight(id)
    {
    var imageNode = document.getElementById(id);
    var imgWidth = imageNode.getAttribute("width");
    var imgHeight = imageNode.getAttribute("height");
    alert("image Width="+parseInt(imgWidth)+"image Height="+parseInt(imgHeight));
    }
    </script>