<script src="'http://hompimpa.googlecode.com/files/jquery-easing-1.3.pack.js"></script>
Lorem ipsum dolor sit amet, consectetuer adipiscing <a href="#" title="http://1.bp.blogspot.com/-TxHA91sLYfc/T3WH0GAJiJI/AAAAAAAAAQ8/ueI4IeouHBs/s200/%255Banimepaper.net%255Dwallpaper-standard-anime-uta-no-prince-sama-maji-love-1000-daydreamer-218228-mibelle-preview-83de5f01.jpg">elit</a>, sed diam nonummy nibh euismod tincidunt ut laoreet dolore <a href="#" title="http://1.bp.blogspot.com/-TxHA91sLYfc/T3WH0GAJiJI/AAAAAAAAAQ8/ueI4IeouHBs/s200/%255Banimepaper.net%255Dwallpaper-standard-anime-uta-no-prince-sama-maji-love-1000-daydreamer-218228-mibelle-preview-83de5f01.jpg">magna aliquam erat volutpat</a>. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate <a href="#" title="http://1.bp.blogspot.com/-cMMpmdq5H2c/Tw6sscgTmLI/AAAAAAAAAlU/XWS4-1fi2x8/s45/Anakdesa.jpg">velit esse molestie consequat</a>, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.<script type='text/javascript'>
var ttTarget = "a";
</script>
$(function() {
$(ttTarget).css('cursor', 'help').hover(function(e) {
$(this).append('<div id="toolpik"><div id="nurrohman"></div><div style="clear:both;"></div></div>');
$('#nurrohman', '#toolpik').html('<img src="' + $(this).attr('title') + '" \/>');
$(this).removeAttr('title');
// Get the toolpik width and height
var toolpikWidth = $("#toolpik").outerWidth(),
toolpikHeight = $("#toolpik").outerHeight(),
// Get the window width and height
winWidth = $(window).width(),
winHeight = $(window).height(),
top = e.clientY - toolpikHeight/2, // Set top and bottom position of the toolpik
left = e.clientX - toolpikWidth/2; // Set the left and right position of the toolpik
if (top + toolpikHeight > winHeight) {
// Flip the toolpik position to the top of the object
// so it won't go out of the current window height
// and show up in the correct place
top = winHeight - toolpikHeight - 50;
} else if (top <= 0) {
top = 10;
} else {
top = top;
}
if (left + toolpikWidth > winWidth) {
// Shift the toolpik position to the left of the object
// so it won't go out of width of current window width
// and show up in the correct place
left = winWidth - toolpikWidth - 50;
} else if (left <= 0) {
left = 10;
} else {
left = left;
}
// Last: Show and set the position of the toolpik with animation
$('#toolpik')
.delay(600)
.fadeIn(1000, movement);
function movement() {
$(this)
.delay(600)
.animate({
top:top-70,
left:left
}, {
duration:2000,
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.