jQuery:超链接title提示和图片提示效果

function titleA(name) {
    var x=10;
    var y=10;
    $(name).mouseover(function(e){
        this.myTitle=this.title;
        this.title="";
        this.imgTitle = this.myTitle?"
"
+ this.myTitle :"" var tooltip=""; $(this).parent().append(tooltip); setTimeout(function(){ $("#tplink").show(); },1000) }).mouseout(function(){ this.title=this.myTitle; $("#tplink").remove(); }).mousemove(function(e){ $("#tplink").css({"top": (e.pageY+y) + "px","left": (e.pageX+x) + "px"}); }) }

你可能感兴趣的:(代码集)