弹出图像鼠标悬停 [英] Pop up image on mouse hover
本文介绍了弹出图像鼠标悬停的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用asp.net 2.0和C#。
I am using asp.net 2.0 and c#.
我有一个DataGrid中,我有一个图像控制,即
I have a datagrid in which I have a image control, i.e.
<asp:Image ID="ImagePreview" runat="server" Width="62px" Height="62px" />
对此我设定从code后面的图像URL,i.e.the图像中的物理文件夹中。
我想开一个弹出与mousehover的形象。
for which I am setting the image URL from code behind, i.e.the image exist in the physical folder. I want to open a pop up with the image on mousehover.
请帮助我。
提前致谢。
Please help me. Thanks in advance.
请让我知道是否需要任何其他信息。
Kindly let me know if any other information is required.
推荐答案
请使用JavaScript这样的:
Please use JavaScript for this:
ImagePreview.Attributes.Item("onMouseOver") = "javascript:window.open('localhost','newWindow','width=200,height=200')";
这篇关于弹出图像鼠标悬停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文