document.body.scrollHeight
document.body.scrollWidth

解决方案 »

  1.   

    <body>
    <script>
    for(ob in document.body)document.write(ob,"<br>")
    </script>
      

  2.   

    <HTML>
    <HEAD>
    <SCRIPT>
    var count = 10;
    function Picture()
    {
    count = Counting(count);
    Resize(count);
    return false;
    }
    function Counting(count){   
        if (event.wheelDelta >= 120)
            count++;
        else if (event.wheelDelta <= -120)
            count--;   
        return count; 
    }
    function Resize(count){    
        oImage.style.zoom = count + '0%';    
    }
    </SCRIPT>
    </HEAD>
    <BODY>
    <img id="oImage" src="Sample.jpg" onmousewheel="Picture()" width="283"
    height="212" >
    </BODY>
    </HTML>
      

  3.   

    onmousewheel event:
    http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onmousewheel.asp