代码很短:
<div style="overflow:auto; width:300; height:300" id=a>
<img src="http://www.loveinhere.com/images/funPic/1000/p_10141.jpg" width="800" height="800" onmousemove='a.scrollLeft=event.x*2.5-a.offsetLeft-100;a.scrollTop=event.y*2.5-a.offsetTop-100'>
</div>
转载于:https://www.cnblogs.com/savageworld/archive/2006/07/18/453805.html