1.javascript文件

    document.write("<div id='pup' style='position:absolute; border: 1px solid gray;z-index:1;color:#000000;background-color: #ffffff; width200px;overflow: visible;visibility: hidden;font-size:12px;padding:2px;text-align: left'></div>")

    function showpup(str)
    {
       var x=event.x;
       var y=event.y;
       pup.innerHTML=str;
       pup.style.visibility="visible";
       pup.style.left=x+10;
       pup.style.pixelTop=y+document.body.scrollTop+10;
    }

    function hidepup()
    {
       pup.style.innerHTML=""
       pup.style.visibility="hidden";
    }

     

    2.在连接符号内加入代码

    <a href="#"   onMouseMove="showpup('标题:><br>类型:<br>时间:<br>浏览人数:')" onMouseOut='hidepup()'>