Return to Snippet

Revision: 19213
at October 18, 2009 07:02 by teedy

Initial Code
$(function() {
		var txt = $(this).attr('title');
		$(this).append('<em class="" style="position:absolute;background:#000;color:#fff">'+txt+'</em>');
		var x = $(this).offset().left;	
		var y = $(this).offset().top;
		$(this).find('em').css({top: ((y*1)+12)+'px', left: x+'px'}).show('fast');
		return false;

Initial URL

Initial Description
A simple jQuery-powered hover based on the element's title

Initial Title
Cirrostratus Hover

Initial Tags
javascript, jquery, web, design

Initial Language