在鼠标悬停时弹出图像

时间:2010-07-12 13:48:52

标签: asp.net popup mouseover

我正在使用asp.net 2.0和c#。

我有一个数据网格,我有一个图像控件,即

<asp:Image ID="ImagePreview" runat="server"  Width="62px" Height="62px" />

我从后面的代码设置图像URL,即图像存在于物理文件夹中。 我想打开一个带有鼠标悬停图像的弹出窗口。

请帮帮我。 提前致谢。

如果需要任何其他信息,请告诉我。

2 个答案:

答案 0 :(得分:0)

请使用JavaScript:

ImagePreview.Attributes.Item("onMouseOver") = "javascript:window.open('localhost','newWindow','width=200,height=200')";

答案 1 :(得分:0)

尝试jQuery工具提示,您可以将图像预览放在工具提示中。 http://flowplayer.org/tools/tooltip/index.html

我已经在GridView控件的一个列中实现了它,并且效果很好

相关问题