css滤镜+js的3个按钮

本文展示了一个使用HTML和JavaScript集成MSNMessenger功能的例子,包括添加联系人和发送即时消息的功能。通过特定的浏览器环境(如InternetExplorer)实现与MSNMessenger的交互。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<style>
 body {background-color:#000099}
a:link {font-family:arial;color:white;font-size:20px;text-decoration:none;} 
a:visited {font-family:arial;color:white;font-size:20px;text-decoration:none;}
a:hover{color:yellow;}
.sha {position:absolute;filter:shadow(color=gray,direction=45)}
.sha2 {position:absolute;left:400px;top:400px;filter:Dropshadow

(color=gray,offX=1,offX=1,Positive=True)}
</style>
<object classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28" codetype="application/x-

oleobject" id="MsgrObj" width="0" height="0"></object>


 <table border=0 cellspacing=1 bgcolor="#000000">
  <tr height=40>
   <td width=80 align="center" valign="middle" style="filter:Alpha

(opacity=00,finishopacity=90,style=1,startx=-20,finishx=80,)" bgcolor="#333333"

onmouseover="this.bgColor='#999999';document.getElementById('1').style.color='yellow'"

onmouseout="this.bgColor='#333333';document.getElementById('1').style.color='white'">
<a href="#" id="1">honey</a>
</td>
<td width=80 align="center" valign="middle"  style="filter:Alpha

(opacity=00,finishopacity=90,style=1,startx=80,starty=-10,finishx=80,finishy=30,)"

bgcolor="#333333" onmouseover="this.bgColor='#999999'" onmouseout="this.bgColor='#333333'">
<a href="#" onclick="javascript:addMSNContact('sdfj@df.hotmail.com','The MSN functions

only work when launched from Microsoft Internet Explorer.');return false;">add</a>
</td>
<td width=80 align="center" valign="middle"  style="filter:Alpha

(opacity=00,finishopacity=90,style=2,startx=80,starty=40,finishx=40,finishy=20,)"

bgcolor="#333333" onmouseover="this.bgColor='#999999'" onmouseout="this.bgColor='#333333'">
<a href="#" onclick="
  javascript:sendMSNMessage('sdfj@df.hotmail.com','The MSN functions only work when

launched from Microsoft Internet Explorer.'); return false;
 ">send</a>
</td></tr>
<tr>
 <td colspan="3"><!--img src="" width=300 height=300 border=0 style="background-

color:pink;"-->
 </td>
</tr>
</table>
 <script>
  function handleError(msg, url, h)
 {
  //alert(msg);
   if (msg.indexOf('8100031e') != '-1') {
      alert('Please login MSN Messenger.');
     return true;
   } else {
     return false;
   }
 }
 
 window.onerror = handleError;
 function sendMSNMessage(name,msg)
 {
  if (!document.all) {
   alert(msg);
   return false;
  } else {
   MsgrObj.InstantMessage(name);
   return false;
  }
 }
 
function addMSNContact(name,msg)
 {
  if (!document.all) {
   alert(msg);
   return false;
  } else {
   MsgrObj.AddContact(0, name);
   return false;
  }
 }
 
 
 </script>
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值