爱易网
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 浏览次数:20296 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<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
上一篇:狡猾的按钮特效
下一篇:显示鼠标坐标
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
新闻早8点》Facebook失手发布Snapchat类应用
高通拼抢国际芯片市场 联发科海外拓展难安心
联想国庆完成收购IBM x86服务器
首批四款“官方”打车软件发布:均为安卓版本
虚拟运营商流量不清零吸引用户 盈利待明
FDD牌照12月将发放 联通电信双4G反击中移动
百视通:Xbox One汉化获批 游戏迷欢呼吧
火一把就死: 百度魔图验证社交游戏衰亡宿命
用友软件股价逆势下跌 再融资方案现曙光
推荐阅读
更多>
天音通信170套餐试商用放号:流量两年不清零
国美苏宁线上首度正面PK 京东列席4月电商战
第二梯队也PK:当1号店“遇上”京东手机节
马云自称在美国曾被绑票
韩国研制无线充电系统:一次可充40部手机
窗口期:还有哪些互联网公司可能今年IPO?
传诺基亚5月14日发布会推出Lumia 950
英特尔承认,联想最新K系列智能手机放弃英特尔处理器
苹果6月20日发布iPhone5S 触摸屏概念股生动
为啥苹果定要出廉价iPhone?都是安卓逼的
智能手机:中国手机市场最受关注十五款产品清点
刘强东:京东上市融资用于开拓三至六线城市
总部大楼已换微软Logo:回忆诺基亚的兴衰史
支付宝钱包支持医保移动缴费 广州成首个试点
首批四款“官方”打车软件发布:均为安卓版本
微信企业号必须搬走四座大山,否则只能铩羽而归!
苹果售后生态链乱象:供需失衡价钱不一
中兴通讯不打机海战术 将向中高端手机转型
频繁自杀 折射媒体变革中的媒体人迷茫与压力并存
聚美向左,唯品向右,怎能耐得住高跟和红唇的诱惑!