HTC 提示效果 TIPS

<ATTACH EVENT="ondocumentready" HANDLER="Initialise"/>
<SCRIPT LANGUAGE="JScript">
/*
  Program Name: SLIGHTBOY HTC Event Tips.
  Program Author: SLIGHTBOY.
  Write Date: 2004-10-25.
*/

var Wish_Content_Tips = window.document.getElementById("Wish_Content_Tips");
if (Wish_Content_Tips == null)
{
  var Wish_Content_Tips = window.document.createElement("div");
  with(Wish_Content_Tips)id="Wish_Content_Tips";
  window.document.body.appendChild(Wish_Content_Tips);
}

function Initialise() {
  onmouseover = onmouseover_event;
  onmousemove = onmousemove_event;
  onmouseout = onmouseout_event;
}

function onmouseover_event() {
  var content ="<table width=/"130/" border=/"0/" cellpadding=/"2/" cellspacing=/"2/" style=/"background-color:#808080;word-break:break-all;filter: Alpha(Opacity=90, FinishOpacity=30, Style=1, StartX=1, StartY=1, FinishX=100, FinishY=100);/"><tr><td><font color=/"#FFFFFF/">"+ this.tips +"</font></td></tr></table>";
  Wish_Content_Tips.innerHTML = content;
  Wish_Content_Tips.style.visibility = "visible";
  Wish_Content_Tips.style.position = "absolute";
}

function onmousemove_event() {
  Wish_Content_Tips.style.left = event.clientX - 60;
  Wish_Content_Tips.style.top = event.clientY + 25;
}

function onmouseout_event() {
  Wish_Content_Tips.style.visibility = "hidden";
}
</SCRIPT>


使用方法:
<style type="text/css">
.test {
behavior:url(behaviorEvent.htc);
}
</style>
<div align="center">
<a href="" title="" tips="sdfsdadfwefe<br>dfasd" class="test">fasdfasd</a>
<br><br>
<a href="" title="" tips="sdfsdadfwefe<br>dfasd" class="test">fasdfasd</a>
</div>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值