像这样:
$(function() {
$('*').fadeTo('fast',0.5).hover(function() {
$(this).fadeTo('fast',1);
}, function() {
$(this).fadeTo('fast',0.5);
});
});
Run Code Online (Sandbox Code Playgroud)
演示:http://jsfiddle.net/Ender/vJQDx/