鼠标进入和弹出时弹出窗口 [英] Popup on Mouse enter and Mouse out

查看:76
本文介绍了鼠标进入和弹出时弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图将弹出控件应用于ASP.NET网站上的链接"按钮.弹出窗口仅在单击按钮时出现.如何修改行为以使弹出窗口在鼠标悬停时出现而在鼠标悬停时隐藏?

按钮代码:

Hi,

I was trying to apply a pop up control to a Link button on my ASP.NET website. The popup appears only on button click. How can the behavior be modified to make the popup appear when on mouseover and hide on mouseout?

Button code:

<asp:LinkButton ID="LinkButton2" CssClass="btn green"  ToolTip="NewProfile" Text="NewPlugin" 
           runat="server" Width="175px" onclick="AddBtn_Click" /><br /><br />


对于弹出控件:


For popup control:

<asp:Panel ID="Panel4" runat="server" CssClass="popupControl">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <contenttemplate>
                        Administrative previliges are required for this action.                            
                    </contenttemplate>
                                    
       <asp:PopupControlExtender ID="PopupControlExtender1" runat="server" TargetControlID="LinkButton2" PopupControlID="Panel4" Position="Right">

推荐答案

以下是使用jQuery的许多解决方案:
http://www.webdesignbooth.com/15-jquery-plugins -to-create-an-user-friendly-tooltip/ [
Here is a number of solutions using jQuery:
http://www.webdesignbooth.com/15-jquery-plugins-to-create-an-user-friendly-tooltip/[^]

Regards
Espen Harlinn


弹出窗口仅在单击按钮时出现." -还不错.

使鼠标悬停时显示弹出窗口,而在鼠标悬停时隐藏弹出窗口" –用户感到愤怒.

您还记得很多用户阻止弹出窗口吗?有充分的理由吗?

首先尝试对您的同事进行此类更改.小心点.

祝你好运!
"The popup appears only on button click." -- not too bad.

"make the popup appear when on mouseover and hide on mouseout" -- the user gets furious.

Do you remember many users block pop-ups -- for good reasons?

Try such changes on dogs your colleagues first. Be careful.

Good luck!


这篇关于鼠标进入和弹出时弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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