<script language="JavaScript" >
function aaa(){
document.getElementById('imgmap').src="servlet/Mapservice?rqutype=panmap¢erx=113.983¢ery=22.690";}
</script>
<body>
<img src='1.jpg' id='imgmap'> <input type="button" name="aaaa" value="aaaa" onclick="aaa()">
</body>
function aaa(){
document.getElementById('imgmap').src="servlet/Mapservice?rqutype=panmap¢erx=113.983¢ery=22.690";}
</script>
<body>
<img src='1.jpg' id='imgmap'> <input type="button" name="aaaa" value="aaaa" onclick="aaa()">
</body>
function aaa(){
document.getElementById('imgmap').src="servlet/Mapservice?rqutype=panmap¢erx=113.983¢ery=22.690";}
</script>
<body>
<img id="imgmap" GALLERYIMG="false" style="position:absolute;left:0px;top:0px;height:520px;width:610px;cursor:default"> <input type="button" name="aaaa" value="aaaa" onclick="aaa()">
</body>
<img src="<%=servlet/Mapservice?rqutype=panmap¢erx=113.983¢ery=22.690%>"></img>如果你是想单击按钮后生成图片就在单击按钮的时候跳转到另一个页面,在另一个也面写上上面的代码就可以了