如何在ShowModalDialog中显示图像地图图像 [英] How to dispaly image map image in ShowModalDialog
本文介绍了如何在ShowModalDialog中显示图像地图图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已编写此脚本以在showmodaldialog中显示图像
I have written this script to show the image in the showmodaldialog
<script type="text/javascript" language="javascript">
<!--
function ModalDialog(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == ''string'')
href=mylink;
else
href=mylink.href;
//window.open(href, windowname, ''width=800,height=600,scrollbars=yes'');
window.ShowModalDialog(href,windoname, "dialogWidth:400px; dialogHeight:225px; status:no; center:yes");
return false;
}
-->
这是图片地图代码
this is the image map code
<img src="../../new/mar/23/23032010-01.jpg" width="595" height="900" usemap="#23032010-01.jpg" class="map" border="0" align="center" />
<map name="23032010-01.jpg" id="23032010-01.jpg">
<area shape="rect" coords="510,14,607,115" href="new\mar\23\01\23032010-01-N01.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="153,143,341,382" href="new\mar\23\01\23032010-01-N02.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="344,140,618,271" href="new\mar\23\01\23032010-01-N03.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="349,276,618,384" href="new\mar\23\01\23032010-01-N04.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="147,384,310,589" href="new\mar\23\01\23032010-01-N05.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="316,386,412,589" href="new\mar\23\01\23032010-01-N06.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="417,385,618,595" href="new\mar\23\01\23032010-01-N07.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="142,590,368,693" href="new\mar\23\01\23032010-01-N08.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="139,692,263,887" href="new\mar\23\01\23032010-01-N10.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="372,599,615,743" href="new\mar\23\01\23032010-01-N09.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="262,693,362,881" href="new\mar\23\01\23032010-01-N11.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="372,748,616,880" href="new\mar\23\01\23032010-01-N12.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="3,132,136,456" href="new\mar\23\01\23032010-01-N13.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="11,460,130,633" href="new\mar\23\01\23032010-01-N14.jpg" onclick="return ModalDialog(this,'gloss')" />
<area shape="rect" coords="17,639,126,879" href="new\mar\23\01\23032010-01-N15.jpg" onclick="return ModalDialog(this,'gloss')" />
</map>
此代码不起作用,它将打开新的IE并显示图像
请帮帮我
谢谢
Dhiman
This code is not working it opens new IE and display the image
Please help me
Thanks
Dhiman
推荐答案
使用href =#''而不是图像的路径.
Use href=''#'' rather than the path to the image.
这篇关于如何在ShowModalDialog中显示图像地图图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文