JSFiddle - React, Tailwind, and code Playground
by kachibito
HTML
<h1>Overview</h1>
<p>Looking for a Minimal, Responsive, Gallery WordPress theme? <a href="http://wp-shotoku.com/about-shotoku/" class="tooltip" title="Minimal, Responsive, Gallery WordPress theme for FREE!!">Shotoku</a> is a free html5 responsive web design WordPress gallery theme with CSS3 Media Queries for any device.</p>
<p>The theme is free for personal and commercial use. Attribution is not necessary, but certainly appreciated.</p>
CSS
p{font-size:12px; line-height:16px;}
a{color:red ;}
#tip_body {
display: none;
position: absolute;
padding: 10px;
left: 5px;
font-size: 0.8em;
background-color: #333;
color:#fff;
border: 1px solid red;
opacity: 0.9 ;
filter:progid:DXImageTransform.Microsoft.Alpha(Enabled=1,Style=0,Opacity=90) ;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
z-index: 9999; }
JavaScript
this.t_tip = function() {
this.xOffset = -10;
this.yOffset = 20;
$(".tooltip").unbind().hover(
function(e) {
this.t = this.title;
this.title = '';
this.top = (e.pageY + yOffset);
this.left = (e.pageX + xOffset);
$('body').append( '<span id="tip_body">' + this.t + '</span>' );
$('#tip_body').css("top", this.top+"px").css("left", this.left+"px").fadeIn("farst");
},
function() {
this.title = this.t;
$("#tip_body").remove();
}
).mousemove(
function(e) {
this.top = (e.pageY + yOffset);
this.left = (e.pageX + xOffset);
$("#tip_body").css("top", this.top+"px").css("left", this.left+"px");
}
);
};
jQuery(document).ready(function($){t_tip();})