截这里的源码:http://www.pushad.com/Info/2103.Html
提问的贴子在这里:http://www.tiantiansoft.com/bbs/dispbbs.asp?boardID=54&ID=149687
两个文件:
aaa.htm
<html>
<head>
<style type=text/css>
.tigFont{
border-bottom:1px dashed #FF0000;
TEXT-DECORATION: none;
FONT-SIZE: 14px;
FONT-WEIGHT: bold;
COLOR: red;
}
</style>
<script language="JavaScript" src="/AltTitleShow.Js"></script>
</head>
<body>
<div id="vbellzrbsok">
<P>ASP数据库系统开发在线考试系统
</div>
<script>ReplaceString(vbellzrbsok);</script>
</body>
</html>
AltTitleShow.Js
function displayTip(key)
{
var x,y;
x=document.body.scrollLeft+event.clientX;
y=document.body.scrollTop+event.clientY;
lay1.style.display='block';
lay1.style.posLeft=x+20; //设置图层位置的X坐标
lay1.style.posTop=y;
document.all.contentframe.src="http://www.xrss.cn/miniSearch.asp?Key="+key;
}
function closeplay()
{
lay1.style.display='none';
}
function ReplaceString(id)
{
id.innerHTML = id.innerHTML.replace(/数据库/gi,"<a class=tigFont onclick=\"displayTip('数据库')\">数据库</a>");
}
document.write("<div id=lay1 style='position:absolute;width:253;z-index:1;margin-right: auto;margin-left: auto;height:151;border:1px dashed red;display:none;'><table class=text_c_01 cellspacing=1 cellpadding=0 width='252' align=center bgcolor=#ffffff border=0 height='150' ><tbody><tr><td width=1 bgcolor=#8fd0ef></td><td class=text_c_02 style='BORDER-RIGHT: #8fd0ef 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #8fd0ef 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px; BORDER-BOTTOM: #8fd0ef 1px solid' rowspan='6' height='35' valign='top'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' align='center' style='cursor:hand' onclick='closeplay()' bgcolor='#4298df' width='226'><b><font color='#FFFFFF'>More About...</font></b></td><td valign='top' align='center' style='cursor:hand' onclick='closeplay()' bgcolor='#FFFFFF' width='18'>X</td></tr><tr> <td colspan='2'><iframe id='contentframe' border='0' name='content' frameSpacing='0' src='' frameBorder='0' width='250' scrolling='no' height='148' allowTransparency=true></iframe></td></tr></table></td></tr></tbody></table></div>");
效果图