<html>
<head><title>网页title</title><script language="javascript">
<!--
document.write('<div id="ShoshTitleDiv" style="position:absolute;padding:1 2 0 4;left:0;top:0;visibility:hidden;background:yellow;border:red 1px solid;color:black;font-size:9pt;font-face:宋体"></div>')
var tempTitle='';
var titleMaxWidth=300; //提示条最大宽度,单位像素,可以在这里改
function showShoshTitle()
{
if(tempTitle != "")
return;
tempTitle=event.srcElement.title;
if(!tempTitle|| tempTitle.replace(/ /ig,"") == "")
{
tempTitle="";
return;
}
var shoshTitle=document.getElementById("ShoshTitleDiv");
if(!shoshTitle)
return;
event.srcElement.title="";
with(shoshTitle.style)
{
width=0;
visibility='hidden';
wordWrap='normal';
whiteSpace='noWrap';
}
shoshTitle.innerHTML=tempTitle;
var mesWidth=shoshTitle.offsetWidth;
var mesHeight=shoshTitle.offsetHeight;
if(mesWidth>titleMaxWidth)
{
shoshTitle.style.width=titleMaxWidth;
mesWidth=titleMaxWidth;
}
else
shoshTitle.style.width=mesWidth;
if(mesWidth<=document.body.clientWidth-event.x-4)
shoshTitle.style.left=event.x+document.body.scrollLeft+4;
else if(mesWidth<=document.body.clientWidth)
shoshTitle.style.left=document.body.clientWidth-mesWidth+document.body.scrollLeft;
else
shoshTitle.style.left=document.body.scrollLeft;
var i=Math.floor(Math.random()*24);
with(shoshTitle.style)
{
top=event.y+document.body.scrollTop+18;
whiteSpace='normal';
wordWrap='break-word';
filter='revealTrans(transition='+i+',duration=0.5) blendTrans(duration=0.5)';
}
with(shoshTitle)
{
filters.revealTrans.apply();
style.visibility='visible';
filters.revealTrans.play();
}
}
function releaseTitle()
{
if(tempTitle=='')
return;
event.srcElement.title=tempTitle;
tempTitle='';
document.getElementById("ShoshTitleDiv").style.visibility='hidden';
}
function moveTitle()
{
var shoshTitle=document.getElementById("ShoshTitleDiv");
if(shoshTitle.innerHTML=='')
return;
if(shoshTitle.style.visibility=='visible')
{
var mesWidth=shoshTitle.offsetWidth;
var mesHeight=shoshTitle.offsetHeight;
if(mesWidth<=document.body.clientWidth-event.x-4)
shoshTitle.style.left=event.x+document.body.scrollLeft+4;
else if(mesWidth<=document.body.clientWidth)
shoshTitle.style.left=document.body.clientWidth-mesWidth+document.body.scrollLeft;
else
shoshTitle.style.left=document.body.scrollLeft;
shoshTitle.style.top=event.y+document.body.scrollTop+18;
}
}
document.onmouseover=showShoshTitle
document.onmouseout=releaseTitle
document.onmousemove=moveTitle
//by shosh: http://www.cnitblog.com/shosh/-->
</script></head>
<body>
<a href="" tartget=_blank title="点击此链接打开以前使用的blog" >去老blog逛逛</a>
<br><br><br><br><br>
<a href="" tartget=_blank title="点击此链接打开现在使用的blog" >去新blog逛逛</a>
</body>
</html>
谢谢