jQuery.fn.hoverDIY=function () {
$(this).mouseover(function(){
$(this).css("background-color","yellow").css("text-decoration","underline");
}).mouseout(function(){
$(this).css("background-color","#fff").css("text-decoration","blink");
});
}
$("#xxId").hoverDIY();就可以直接调用函数了。