Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

Commit

Permalink
Delay option added
Browse files Browse the repository at this point in the history
  • Loading branch information
arnklint committed Oct 12, 2009
1 parent dc6b0fa commit 481458e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jquery.simple-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Originally extracted from the easy to use CMS Venio at http://venio.se.
if(titleDisplayed.length>0){
$("body").append("<p id='v-tooltip'>"+titleDisplayed+"</p>");
$("#v-tooltip")
.animate({opacity: 1.0}, opts.delay)
.css("top",(e.pageY - opts.xOffset) + "px")
.css("left",(e.pageX + opts.yOffset) + "px")
.fadeIn("fast");
Expand All @@ -37,6 +38,7 @@ Originally extracted from the easy to use CMS Venio at http://venio.se.
title: null,
xOffset: 10,
yOffset: 20,
delay: 400,
overrideElementTitle: false
}
})(jQuery);

0 comments on commit 481458e

Please sign in to comment.