爱易网
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 浏览次数:20330 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<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
上一篇:狡猾的按钮特效
下一篇:显示鼠标坐标
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
微软小冰复活再战移动端:改与米聊、易信和触宝合作
苏宁易购成世界最慢电商 专家称其涉嫌违约
阿朗力避步北电后尘 急切停止自我革新
HDS发布《2013中国CIO洞察白皮书》
淘宝公布新规:升级售假卖家惩罚力度
传谷歌开发者大会发布Android 4.3 并非5.0版本
苹果收购Beats交易或将延期尚需解决5大问题
总部大楼已换微软Logo:回忆诺基亚的兴衰史
新浪微博推粉丝头条功能 意欲与大号分成
推荐阅读
更多>
马斯克的特斯拉能否保持好势头
谷歌欲收买WhatsApp添加砝码 对方否认
二维码支付大战的号角注定已经吹响,尚需标准发放
小灵通两年都无信号 顾客起诉联通公司
传三星为赢得新兴市场:推廉价版Note3
HTC以品牌营销突围 专家建议改变经营思路
京东封杀财付通:终极目标是电商生态圈
阿朗力避步北电后尘 急切停止自我革新
都是300元内 乐视盒子与小米盒子对比体验
佳能利润大跌三成 智能终端倒逼相机厂商转型
杨元庆去年总薪酬1.33亿元
魅族黄章惹怒芙蓉姐姐 将跨界推女神手机
微软为避免代理权争夺 与大股东达成和解协议
余额宝收益率跌破5% 银行系宝宝收益率赶超
小米打响手机价格战 为米3铺路或另有所图
微信收费形式三选一 腾讯或变身运营商
央行暂停二维码支付及虚拟信用卡 支付宝微信不知情
亚马逊Fire Phone:请别拿我跟苹果三星比
苏宁易购成世界最慢电商 专家称其涉嫌违约
挂号网高管团体离任 或因投资人失掉决计