添加ASP.NET C#的Dropdownlist控件的悬停菜单效果 [英] Adding hover menu effect of Dropdownlist control of ASP.NET C#

查看:80
本文介绍了添加ASP.NET C#的Dropdownlist控件的悬停菜单效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我想在我的解决方案中使用Dropdownlist控件添加悬停菜单效果。请参考我合适的帖子..

谢谢..


Hi,

I want to add hover menu effect on Dropdownlist control used in my solution. Please refer me suitable posts..
thanks..

推荐答案

试试这个...... [ ^ ]



如果事件对您不起作用,您可能需要在Page_Load上执行以下操作:



Try this...[^]

If the events don't work for you, you may have to do something on Page_Load like this:

myDropDownList.Attributes.Add("onmouseover", "open()");
myDropDownList.Attributes.Add("onmouseout", "close()");





其中open()和close()是javascript函数。



where open() and close() are javascript functions.


这篇关于添加ASP.NET C#的Dropdownlist控件的悬停菜单效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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