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 ?
Well you can try any of the following plugins with jquery
http://plugins.learningjquery.com/cluetip/demo/
http://jquery.bassistance.de/tooltip/demo/
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.
精彩评论