图像映射中的模式弹出窗口 [英] Modal PopUp in Image map

查看:65
本文介绍了图像映射中的模式弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在图像地图上有2个热点..在单击(图像地图的点击事件)的热点时,我必须显示弹出窗口...如果我单击图像地图弹出窗口的其他区域(热点除外),则不应显示,如何处理.如何避免在其他地方(热点除外)显示弹出窗口.因为只有在热点上点击事件才会触发click事件.我尝试使用

Hi,

I have 2 hot spots on image map .. on click(click event of image map) of hot spots i have to show popup... if i click on other area(except hot spots) of the image map popup should not show, how to handle it. how to avoid showing the popup on other places (except the hot spot). because the click event fires only when clicked on hot spots. I tried using

<script type="text/javascript">
        function showModal() {

            var modal = $find("modalpopup");
            modal.hide(); } 


通过向图像地图控件添加属性


By adding attribute to the image map control

Imagemap1.Attributes.Add("onclick", "showModal()");




当单击非热点区域时,即使执行此Java脚本,也会显示模式弹出窗口扩展程序.请在此问题上需要帮助




when non hot spot area is clicked this java script gets executed even then the modal popup extender is displayed.Please do need help on this issue

推荐答案

find("modalpopup" ); modal.hide(); }
find("modalpopup"); modal.hide(); }


通过向图像地图控件添加属性


By adding attribute to the image map control

Imagemap1.Attributes.Add("onclick", "showModal()");




当单击非热点区域时,即使执行此Java脚本,也会显示模式弹出窗口扩展器.请在此问题上需要帮助




when non hot spot area is clicked this java script gets executed even then the modal popup extender is displayed.Please do need help on this issue


hi,

我想您要单击一张图像的某些部分.如果我单击图像的X部分,则可以执行某些操作;如果单击Y部分,则它将执行某些操作.

您可以通过设置图像的坐标来实现.

请参见下面的链接.它将对您有帮助.

http://www.javascriptkit.com/howto/imagemap.shtml [ http://www.developer.com/net/asp/article.php/3528986/Image-Maps-in-ASPNET-20.htm [图像地图/热点_点图 [ ^ ]


I thing you want to click on some part of one image. If i click on X part of image then do something and if i click on Y part then it will do something.

you do that by setting the co ordinate of the image.

please see the below link. It will help you.

http://www.javascriptkit.com/howto/imagemap.shtml[^]

you can also user image map for that. see the below link.

http://www.developer.com/net/asp/article.php/3528986/Image-Maps-in-ASPNET-20.htm[^]
Image Map / Hot Spot _ Point Plotting[^]


我相信为ImageMap定义click事件将完成您所追求的目标.仅当单击HotSpots对象时,才会为Imagemaps定义的click事件引发.

此处的详细信息: MSDN:ImageMap.Click事件 [ ^ ]
通过示例并实现步骤,以便仅针对热点定义单击.试试吧!
I believe defining a click event for ImageMap will do what you seek. Click event defined for Imagemaps raise only when HotSpots objects are clicked.

Details here: MSDN: ImageMap.Click Event[^]
Go through the example and implement the steps in order to have click defined for hotspots only. Try!


这篇关于图像映射中的模式弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆