爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
四种非常不错的鼠标跟随动态提示文本特效
四种非常不错的鼠标跟随动态提示文本特效
日期:2014-05-18 浏览次数:20161 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<head> <title>不错的鼠标跟随动态提示aiyiweb.com</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <script> //--初始化变量-- // from aiyiweb.com var rT=true;//允许图像过渡 var bT=true;//允许图像淡入淡出 var tw=150;//提示框宽度 var endaction=false;//结束动画 var ns4 = document.layers; var ns6 = document.getElementById && !document.all; var ie4 = document.all; offsetX = 0; offsetY = 20; var toolTipSTYLE=""; function initToolTips() { if(ns4||ns6||ie4) { if(ns4) toolTipSTYLE = document.toolTipLayer; else if(ns6) toolTipSTYLE = document.getElementById("toolTipLayer").style; else if(ie4) toolTipSTYLE = document.all.toolTipLayer.style; if(ns4) document.captureEvents(Event.MOUSEMOVE); else { toolTipSTYLE.visibility = "visible"; toolTipSTYLE.display = "none"; } document.onmousemove = moveToMouseLoc; } } function toolTip(msg, fg, bg) { if(toolTip.arguments.length < 1) // hide { if(ns4) { toolTipSTYLE.visibility = "hidden"; } else { //--图象过渡,淡出处理-- if (!endaction) {toolTipSTYLE.display = "none";} if (rT) document.all("msg1").filters[1].Apply(); if (bT) document.all("msg1").filters[2].Apply(); document.all("msg1").filters[0].opacity=0; if (rT) document.all("msg1").filters[1].Play(); if (bT) document.all("msg1").filters[2].Play(); if (rT){ if (document.all("msg1").filters[1].status==1 || document.all("msg1").filters[1].status==0){ toolTipSTYLE.display = "none";} } if (bT){ if (document.all("msg1").filters[2].status==1 || document.all("msg1").filters[2].status==0){ toolTipSTYLE.display = "none";} } if (!rT && !bT) toolTipSTYLE.display = "none"; //---------------------- } } else // show { if(!fg) fg = "#777777"; if(!bg) bg = "#eeeeee"; var content = '<table id="msg1" name="msg1" border="0" cellspacing="0" cellpadding="1" bgcolor="' + fg + '" class="trans_msg"><td>' + '<table border="0" cellspacing="0" cellpadding="3" bgcolor="' + bg + '"><td width=' + tw + '><font face="Arial" color="' + fg + '" size="-2">' + msg + ' \;</font></td></table></td></table>'; if(ns4) { toolTipSTYLE.document.write(content); toolTipSTYLE.document.close(); toolTipSTYLE.visibility = "visible"; } if(ns6) { document.getElementById("toolTipLayer").innerHTML = content; toolTipSTYLE.display='block' } if(ie4) { document.all("toolTipLayer").innerHTML=content; toolTipSTYLE.display='block' //--图象过渡,淡入处理-- var cssopaction=document.all("msg1").filters[0].opacity document.all("msg1").filters[0].opacity=0; if (rT) document.all("msg1").filters[1].Apply(); if (bT) document.all("msg1").filters[2].Apply(); document.all("msg1").filters[0].opacity=cssopaction; if (rT) document.all("msg1").filters[1].Play(); if (bT) document.all("msg1").filters[2].Play(); //---------------------- } } } function moveToMouseLoc(e) { if(ns4||ns6) { x = e.pageX; y = e.pageY; } else { x = event.x + document.body.scrollLeft; y = event.y + document.body.scrollTop; } toolTipSTYLE.left = x + offsetX; toolTipSTYLE.top = y + offsetY; return true; } </script> <style type="text/css"> <!-- .trans_msg { filter:alpha(opacity=100,enabled=1) revealTrans(duration=.2,transition=1) blendtrans(duration=.2); } --> </style> </head> <script> </script> <body> <div id="toolTipLayer" style="position:absolute; visibility: hid
上一篇:攻击鼠标的文字
下一篇:显示鼠标坐标
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
苹果优势逐渐丧失 传即将推出廉价iPhone
雅安地震 绝不宽恕应用人们爱心的骗子!
这一次,微软将带给我们什么惊喜?
中移动落马高管盘点:广东移动成反腐重地
不提老罗,不说情怀,仅从十四个投诉问题入手谈锤子手机
快播灭了,还有西瓜:视频网站的灰色江湖还在
支付宝服务窗后台首曝光 开放用户消费数据
HTC以品牌营销突围 专家建议改变经营思路
中移动将推出多项4G资费新政
推荐阅读
更多>
Facebook思科联手推免费WiFi 欲覆盖全美
团购网站存活率仅18.6% 剩余缺乏千家
金山毒霸安全中心: XP退役后首个高危漏洞来了
微软大幅调整Bing在华策略:从高大上到接地气
苹果优势逐渐丧失 传即将推出廉价iPhone
诺基亚仍是第二大手机商:功用机有利可图
微信收费形式三选一 腾讯或变身运营商
传陌陌或12月赴美IPO 估值约30亿美元
英特尔涉嫌垄断 欧盟或开出史上最高罚单
打车软件竞争白热化:有冷兵器时代意味
广电总局回应美剧下架:不是所有信息可公开
HTC手机为何一败再败?效果出在供应链
开个房刷个卡全世界都知道个人隐私成公开秘密
全球最具“颠覆性”特质的公司排行榜TOP25
乐视今日临时停牌 受广电酝酿新规消息影响
华为坚持不上市究竟为何?不差钱也不想冒风险
富士康人事故骚动方寸 不惜血本下注电商
巨人网络回应央视 否认应用黑客停止诈骗
iPhone5S组件曝光 印证杀手级功能存在
评论:阿里为什么不试着收购一家香港媒体呢