http://webfx.eae.net/dhtml/scrollzoom/scrollzoom.html

解决方案 »

  1.   

    没看懂你的意思,但可提供拖动原码
    <HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
    <!--
    var ctl_drag=false;
    var currY=0;
    var currX=0;function ctl_onmousedown() {
    ctl_drag=true;
    currX=event.x-parseInt(event.srcElement.style.left);
    currY=event.y-parseInt(event.srcElement.style.top);
    }
    function ctl_onmouseup() {
    ctl_drag=false;
    }function ctl_onmouseout() {
    ctl_drag=false;
    }function ctl_onmousemove() {
    if(ctl_drag)
    {
    event.srcElement.style.left=event.x-currX;
    event.srcElement.style.top=event.y-currY;
    }
    }//-->
    </SCRIPT>
    </HEAD>
    <BODY>
    <IMG id=span1 style="FONT-SIZE: 1px; LEFT: 169px; WIDTH: 100px; CURSOR: hand; POSITION: absolute; TOP: 300px; HEIGHT: 100px; BACKGROUND-COLOR: maroon" onmouseup="return ctl_onmouseup()" onmousemove="return ctl_onmousemove()" onmousedown="return ctl_onmousedown()" onmouseout="return ctl_onmouseout()">


    </BODY>
    </HTML>