[英]Show user information on mousehover
On Mouse-over i wish to show user information such as User Id, User Name, User Location, User Age etc. All this info would be coming from database. 在鼠标悬停时,我希望显示用户信息,例如用户ID,用户名,用户位置,用户年龄等。所有这些信息都将来自数据库。 As well, this information would be in a rectangular block that would actually come-up on Mouse-over.
同样,此信息将位于一个矩形块中,该矩形块实际上将在鼠标悬停时出现。
I am aware that JavaScript could be use to show div (in mouse-over) but don't know how to fetch from database? 我知道JavaScript可以用来显示div(在鼠标悬停时显示),但不知道如何从数据库获取?
Plus the application is a Windows Based Asp.net Application. 另外,该应用程序是基于Windows的Asp.net应用程序。 I am not aware whether that could be possible in Windows based as i'm web based developer.
我不知道这是可能的,因为我是基于Web的开发人员,因此在基于Windows的环境中也可以。
Thanks for all your inputs. 感谢您的所有投入。
You could use the jQuery qtip plugin that can display dynamic content, see a documentation at 您可以使用可以显示动态内容的jQuery qtip插件,请参阅以下文档
http://craigsworks.com/projects/qtip/docs/tutorials/#dynamic http://craigsworks.com/projects/qtip/docs/tutorials/#dynamic
and a demo at 还有一个演示
http://craigsworks.com/projects/qtip/demos/content/loading http://craigsworks.com/projects/qtip/demos/content/loading
The url parameter should point at an aspx page that show the text that is loaded from database. url参数应指向显示从数据库加载的文本的aspx页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.