X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=js%2Feuphorik.js;h=1b78ba8294365fa1a2cf0e6dbc9cae9e5cd7fd73;hb=874434add86031d5f23991e78fb2072eac996458;hp=b44f04298b8b136542e66f9340cf265bac870609;hpb=ec0132f1c1f3599d7818a566b08129c994e6647b;p=euphorik.git diff --git a/js/euphorik.js b/js/euphorik.js index b44f042..1b78ba8 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -134,6 +134,49 @@ Util.prototype.messageDialogue = function(message, type, boutons, formate) this.timeoutMessageDialogue = setTimeout(fermer, conf.tempsAffichageMessageDialogue) } +/** + * Affiche un info bulle lorsque le curseur survole l'élément donné. + * FIXME : le width de element ne tient pas compte du padding !? + */ +Util.prototype.infoBulle = function(message, element) +{ + var virerMess = function() + { + $("#flecheBulle").remove() + $("#messageBulle").remove() + } + + element.click(virerMess) + + element.hover( + function(e) + { + f = $('
').appendTo("body") + m = $('' + message + '