0

私たちのオフィスのホットスポットマップがあります。ホットスポットをクリックすると、小さなウィンドウがポップアップしますが、地図を含む大きなページは元の位置に戻ります。大きな地図ページをブラウザーの同じ位置に保つにはどうすればよいですか?

<html>
<title>Office Map</title>


<div>
<img src="Office.jpg" width="2550" height="1650" usemap="#Map" class="mapper">
</div>

<map name="Map">
<!--MKTP51-->
<area shape="rect" title="MKTP51"   coords="1856,391,1874,420" alt="MKTP51" a href="#" onClick="window.open('PrinterPages/mktp51.html','mywindow','width=400,height=200,toolbar=no,location=no,directories=no,statu s=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no')">
<!--MKTP40-->  
<area shape="rect" title="MKTP40"   coords="772,322,790,358"   alt="MKTP40" a href="#" onClick=    "window.open('PrinterPages/mktp40.html','mywindow','width=400,height=200,toolbar=no,location=no,directories=no,statu s=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no')">

前もって感謝します。

4

1 に答える 1

1

属性return false;の最後に置いてみてください。(現在のステートメントの最後にonclicka を付ける必要があることに注意してください);

これにより、標準のリンク処理が停止し、ページの先頭への移動が停止します。href="#"

確認のために、onclick属性の最後は次のようにする必要があります...

... resizable=no'); return false;">
于 2012-09-27T20:46:49.647 に答える