简体   繁体   中英

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. 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?

Plus the application is a Windows Based Asp.net Application. I am not aware whether that could be possible in Windows based as i'm web based developer.

Thanks for all your inputs.

You could use the jQuery qtip plugin that can display dynamic content, see a documentation at

http://craigsworks.com/projects/qtip/docs/tutorials/#dynamic

and a demo at

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM