Puru
Puru

Reputation: 9083

How to show an Image as a Tool Tip using jquery?

I have a requirement something like "Showing the tool tip as an image." I want to show the image in the tool tip. Is it possible to show this ?

Upvotes: 1

Views: 327

Answers (2)

Clyde Lobo
Clyde Lobo

Reputation: 9174

Well you can try any of the following plugins with jquery

http://plugins.learningjquery.com/cluetip/demo/

http://jquery.bassistance.de/tooltip/demo/

Upvotes: 1

jonagoldman
jonagoldman

Reputation: 8754

Almost everything is possible. Of course there is no 'native' way of doing it, you can't just add an image to the 'title' attribute.

You need to use JavaScript.

You can either write your own code or use some kind of plugin.

I recommend using some of the great jQuery plugins available out there. Just google it and choose the one that best fits your needs.

here is a start: http://craigsworks.com/projects/qtip/

And a very simple tutorial: http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery

Hope it helps.

Upvotes: 1

Related Questions