<img src="http://community.csdn.net/images/csdn.gif" onmouseover="this.src='http://blog.csdn.net/images/blog_csdn_net/gjd111686/24540/t_Tiger.jpg';" onmouseout="this.src='http://community.csdn.net/images/csdn.gif';">

解决方案 »

  1.   

    <div id=loadinbox style="z-index: 0; display: block; cursor: default; position: absolute; top: 200px; left: -400px; width: 300px;height:150px; background-color: #ffffff; border: 1px solid #000000;">
    <img src=images.jpg width=300 height=300>
    </div>
    <input type=button onclick=a()>
    <script>
    function yesloadbox()
    {
            document.getElementById("loadinbox").style.width = 300
            document.getElementById("loadinbox").style.height = 150
            }
    </script>
      

  2.   

    <input onclick="document.all.y.style.height=308" type="button" value="缩小">
    <div style="height:616;overflow:hidden" id=y>
    <img src="http://www.footo.cn/albums/11152/2184/UF277397.jpg" id=x>
    </div>
      

  3.   

    <input onclick="document.all.y.style.height=(parseInt(document.all.y.style.height)==308?616:308)" type="button" value="缩小">
    <div style="height:616;overflow:hidden" id=y>
    <img src="http://www.footo.cn/albums/11152/2184/UF277397.jpg" id=x>
    </div>
      

  4.   

    <div id=loadinbox style="z-index: 0; display: block; cursor: default; position: absolute; top: 200px; left: 400px; width: 300px;height:150px; background-color: #ffffff; border: 1px solid #000000;">
    <img src=images.jpg width=300 height=200>
    </div>
    <input type=button onclick=yesloadbox()>
    <script>
    function yesloadbox()
    {
            document.getElementById("loadinbox").style.width = 300
            document.getElementById("loadinbox").style.height = 300
            }
    </script>
      

  5.   

    overflow是什么意思呀,是遮盖的意思吗?
      

  6.   

    <div id=bx style="z-index: 0; display: block; cursor: default; position: absolute; top: 200px; left: -400px; width: 300px;height:150px; background-color: #ffffff; border: 1px solid #000000;">
    <img src=images.jpg width=300 height=300>
    </div>
    <input type=button onclick=change()>
    <script>
    function change()
    {
            document.getElementById("bx").currentStyle.width = 300
            document.getElementById("bx").currentStyle.height = 150
    }
    </script>
      

  7.   

    overflow是什么意思呀,是遮盖的意思吗?
    是的.用这个就会把下半身盖了.