简体   繁体   English

在鼠标悬停时显示用户信息

[英]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.

相关问题 当鼠标悬停在该垂直图像上时,在图像上显示标题 - Show title on image when mousehover on that perticular image 在鼠标悬停的只读输入框中显示清除按钮 - Show clear button in readonly input box on mousehover 如何使用javascript显示当前用户信息? - How to show the current user information using javascript? 如何在asp.net中的mousehover上显示一个小窗口 - How to show a small window on mousehover in asp.net Function 使用 Javascript 在鼠标悬停时显示 div 或在鼠标悬停时将 div 隐藏到 forEach 中 - Function to Show a div on mousehover or hide div on mouseout into forEach with Javascript 如何使用Passport和NodeJS在angularJS前端中显示用户信息 - How to show user information in angularJS frontend with Passport and nodeJS 有可能在浏览器中显示一个向用户请求信息的输入窗口? - It's possible show an input window requesting information to the user in the browser? 在条带客户门户中,有没有办法显示用户订阅的更多信息? - In the stripe customer portal, is there a way to show more information for the user's subscription? 如何根据用户信息显示不同的侧边栏? 登录后.ReactJS - How can I show a different sidebar based on user information? After logged in. ReactJS 分别显示信息 - Show the information separately
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM