超链接提示特效

<head>
<script type="text/javascript" language="JavaScript">
//IE专用
  var sPop = null;
  document.write("<style type='text/css'>");
  document.write(".PopText { font-family: Tahoma, 宋体; color: #000000; background-color: #ffffff; border: 1px #000000 dashed; font-size: 11px; line-height: 14px; padding: 4px; visibility: hidden; filter: Alpha(Opacity=0)}");
  document.write("</style>");
  document.write("<div id='popLayer' style='position:absolute;z-index:1000;filter:revealtrans(duration=.5,transition=12) revealTrans(duration=1,transition=23) alpha(opacity=90,enabled=100)' class='PopText'></div>");

  function showPopupText() {
      var o = event.srcElement;
      MouseX = event.x;
      MouseY = event.y;
      if (o.alt != null && o.alt != "") {
          o.pop = o.alt;
          o.alt = ""
      }
      if (o.title != null && o.title != "") {
          o.pop = o.title;
          o.title = ""
      }
      if (o.pop) {
          o.pop = o.pop.replace("/n", "<br>");
          o.pop = o.pop.replace("/n", "<br>");
      }
      if (o.pop != sPop) {
          sPop = o.pop;
          if (sPop == null || sPop == "") {
              popLayer.filters[0].apply();
              popLayer.style.visibility = "hidden";
              popLayer.filters[0].play();
              popLayer.style.width = ""
          } else {
              if (o.dyclass != null) popStyle = o.dyclass
              else popStyle = "PopText";
              popLayer.filters[1].apply();
              popLayer.style.visibility = "visible";
              popLayer.filters[1].play();
              showIt();
              if (popLayer.offsetWidth > 500) {
                  popLayer.style.width = 500
              }
          }
      }
  }
  function showIt() {
      popLayer.className = popStyle;
      popLayer.innerHTML = sPop;
      popWidth = popLayer.clientWidth;
      popHeight = popLayer.clientHeight;
      if (event.clientX + 12 + popWidth > document.body.clientWidth) popLeftAdjust = -popWidth - 24
      else popLeftAdjust = 0;
      if (event.clientY + 12 + popHeight > document.body.clientHeight) popTopAdjust = -popHeight - 24
      else popTopAdjust = 0;
      popLayer.style.left = event.clientX + 12 + document.body.scrollLeft + popLeftAdjust;
      popLayer.style.top = event.clientY + 12 + document.body.scrollTop + popTopAdjust;
  }
  document.onmouseover = showPopupText;
</script>
</head>
<body>
<tr class="data">
	<td>
		 快捷访问方式:① <a href="http://alexa.chinaz.com/Index.asp?Domain=fightfly.com" title="把查询地址加到收藏夹,以方便以后查询!" onclick="window.external.addFavorite('http://alexa.chinaz.com','网站ALEXA排名查询')">加入收藏夹</a>
		 ② <a href="alexa.reg" title="安装后在任意页面右键查看当前网站ALEXA信息。">IE右键菜单</a>
		 ③ <a href="alexa_plugin.rar" title="下载后放在Maxthon/Plugin目录下,内附使用说明。">Maxthon插件</a> 
		 ④ <a href="Show.asp" target="_blank" title="将下面代码嵌入要显示排名位置,即可显示当前站点排名信息。">嵌入页面代码</a> 
		 ⑤ <a href="javascript:clipboardData.setData('Text','http://alexa.chinaz.com/Index.asp?Domain=fightfly.com');alert('已将当前页面地址复制到剪切板,粘贴给需要查询的朋友即可。')" title="复制查询地址给其他人。">推荐给朋友</a>
	</td>
</tr>
<body>

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

相关文章

开始在上面输入您的搜索词,然后按回车进行搜索。按ESC取消。

返回顶部