HTML5: Show hint text near to cursor

I am looking for a way to show a text (hint) that moves with the cursor. Is there a way to do it with GWT or native HTML5?


There is the ability to do tooltips (if that's what you're looking for) with straight CSS and HTML.


I can't confirm I've used this before, but the code would be something like this:


<p>I <span data-tooltip=", really" class="tooltip">really</span> like pie.</p>‚Äč


.tooltip:hover:after { content: attr(data-tooltip); }

Here's a jsFiddle to play with.

Need Your Help

Syntax highlighting with attributed strings on UITextView

ios uitextview syntax-highlighting nsattributedstring

There is an excellent project to add syntax highlighting and line numbers to your project:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.