$('#set1 *').tooltip();
$("#foottip a").jtooltip({ template: "", bodyHandler: function(el) { return $($(this.element[0]).attr("href")).html(); } });
$('#tonus').jtooltip({ delay: 0, template: "", bodyHandler: function(el) { return $("<img/>").attr("src", this.element[0].src); } });
$('#yahoo a').jtooltip({ delay: 0, fade: 1050 });
Tooltip with fixed width Google me! Google me!
Tooltip width auto width Google me! Google me!
$('#right a').jtooltip({ delay: 0, tooltipClass: "ui-widget-content ui-corner-all right" }); $('#right2 a').jtooltip({ });
$('#jsonhref').jtooltip({ delay: 100, fade: 250, template: "This is tooltip above href. And href is: {href}", getJSONparams: function (el) { return { href: $(this.element[0]).attr("href") }; } }); $('#jsontext').jtooltip({ delay: 100, fade: 250, template: "{Title}. And text value is: {text}", getJSONparams: function (el) { return { text: this.element[0].value, Title : "This is tooltip above text" }; } });
$("#lblUserName").jtooltip({ delay: 100, fade: 250, loadURL: 'http://localhost/JSON.html', template: '<div style="color:red"> Thank you. <br /> {foreach:} <p style="color: green; margin: 10px;"> Wine - {wine} </p> <span>Sugar - {sugar} </span> <span> Lemon is {lemon} </span> {/foreach:} </div>' });
jjtLabel = $("#lbltooltip").jtooltip({ position_at: "right top", position_my: "left bottom", left: -50, top: -15 }); $("#btnShow").click ( function () { jjtLabel.jtooltip("show"); }); $("#btnHide").click ( function () { jjtLabel.jtooltip("hide"); });
jjtBindLabel = $("#lblbindtooltip").jtooltip({ }); jjtBindLabel.bind('onshow', function() { $('#lblstatus').text("Show"); } ); jjtBindLabel.bind('onhide', function() { $('#lblstatus').text("Hide"); } );