网乐原科技

直播中

news center新闻中心
首页 > 资讯中心 > 软件技术

半透明并带边框的链接Title 还可以用HTML语言

发布时间:2008-12-20     阅读数: 次       来源:网乐原科技
要完成此效果把如下代码加入到区域中 <script language="JavaScript"> if ( had_tips != 1 ) { var _ua = document.all ? ((navigator.userAgent.indexOf('MSIE 5') > 5) ? "ie5" : "ie4") : "foo"; if (_ua != "foo" ) { if (typeof(_doc) == "undefined" || _doc == null) _doc = document; var _tipx = 0; var _tipy = 0; var _tipOX = 10; var _tipOY = 1; var _tipWidth; // Opacity=70 提示框背景透明度 _doc.write(''); _doc.onmousemove = tsai; var _tip = _doc.all['TIP__']; } } var had_tips = 1; function tsaiannie (sMsg, sTitle, iWidth, iHeight, iBorder, sTFC, sTBC, sMFC, sMBC) { _tipWidth = 180; // 提示框的寬度 var _tipBorder = 2, // 提示框边框的寬度 _tipTFC = "#FFF8F0", _tipTBC = "#ff8c00", // 提示框边框的顏色 _tipMFC = "#3F3F38", _tipMBC = "ffffff"; // 提示框背景的顏色 if (_ua == "foo") return; _tip.innerHTML = '
' + ((sTitle != null) ? '
'+sTitle+'
' : '') + '
'+sMsg+'
'; annie(); _tip.style.display = ""; } function tsai() { if (_ua == "ie4") { _tipx = event.x; _tipy = event.y; } else if (_ua == "ie5") { _tipx = (event.clientX + _tipOX + _tipWidth <= _doc.body.clientWidth) ? (event.clientX + _doc.body.scrollLeft + _tipOX) : (event.clientX + _doc.body.scrollLeft - _tipWidth - 5); _tipy = event.clientY + _doc.body.scrollTop + _tipOY; } else { return; } if (_tip.style.display != "none") annie(); } function annie() { _tip.style.pixelTop = _tipy; _tip.style.pixelLeft = _tipx; } function tsai900403 () { _tip.style.display = "none"; } document.write('鼠标移过来看效果
'); </script>

网乐原科技

客服热线:0771-5761507

QQ:53290011

QQ邮箱:53290011@qq.com

工作时间:周一到周五 9:00-18:00

地址:广西南宁市江南万达写字楼C16栋1309室

物联网开发

关注我们

微信小商店 腾讯QQ客服 微信客服