The Ashes
Technology, Science and other news
April 10, 2009
jQuery Glow
Filed under : General
JAVASCRIPT:
-
-
$(document).ready(function() {
-
$(‘.white’).addGlow({ textColor: ‘white’, haloColor: ‘#aaa’, radius: 100 });
-
$(‘.blue’).addGlow({ textColor: ‘#00f’, haloColor: ‘#00f’, radius: 100 });
-
$(‘.green’).addGlow({ textColor: ‘#0f0’, haloColor: ‘#0f0’, radius: 100 });
-
$(‘.red’).addGlow({ textColor: ‘#f00’, haloColor: ‘#f00’, radius: 100 });
-
$(‘*’).bind(‘glow:started’, console.info);
-
$(‘*’).bind(‘glow:canceled’, console.info);
-
});
-
The code above, using jQuery Glow by Pat Nakajima, gives you a nice blur error on hover.
Tags :
No Comments