爱易网
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 浏览次数:20231 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <script language="javascript" type="text/javascript"> <!-- var dom = (document.getElementById) ? true : false; var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false; var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false; var ns4 = (document.layers && !dom) ? true : false; var ie4 = (document.all && !dom) ? true : false; var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false; // resize fix for ns4 var origWidth, origHeight; if (ns4) { origWidth = window.innerWidth; origHeight = window.innerHeight; window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); } } // avoid error of passing event object in older browsers if (nodyn) { event = "nope" } /////////////////////// CUSTOMIZE HERE //////////////////// // settings for tooltip // Do you want tip to move when mouse moves over link? var tipFollowMouse= true; var tipWidth= 160; var offX= 12; // how far from mouse to show tip var offY= 12; var tipFontFamily= "Verdana, arial, helvetica, sans-serif"; var tipFontSize= "8pt"; var tipFontColor= "#000000"; var tipBgColor= "#DDECFF"; var origBgColor= tipBgColor; // in case no bgColor set in array var tipBorderColor= "#000080"; var tipBorderWidth= 3; var tipBorderStyle= "ridge"; var tipPadding= 4; // preload images that are to appear in tooltip, (width,height) var img1 = new Image(106,131); img1.src = "http://www.aiyiweb.com/UploadPic/userface/no1323.jpg"; var img2 = new Image(90,45); img2.src = "http://www.aiyiweb.com/UploadPic/userface/no1323.jpg"; // tooltip content goes here var messages = new Array(); // multi-dimensional arrays containing // image, text, bgColor to be sent to tooltip messages[0] = new Array('http://www.aiyiweb.com/UploadPic/userface/no1323.jpg','链接一的说明文字',"#FFFFFF"); messages[1] = new Array('http://www.aiyiweb.com/UploadPic/userface/no1323.jpg','链接二的说明文字',"#DDECFF"); messages[2] = new Array('','',''); //////////////////// END OF CUSTOMIZATION AREA /////////////////// // to layout image and text, 2-row table, image centered in top cell // these go in var tip in doTooltip function // startStr goes before image, midStr goes between image and text var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%"><img src="'; var midStr = '" border="0" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></td></tr><tr><td valign="top">'; var endStr = '</td></tr></table>'; //////////////////////////////////////////////////////////// // initTip - initialization for tooltip. // Global variables for tooltip. // Set styles for all but ns4. // Set up mousemove capture if tipFollowMouse set true. //////////////////////////////////////////////////////////// var tooltip, tipcss; function initTip() { if (nodyn) return; tooltip = (ns4)? document.tipDiv.document: (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null; tipcss = (ns4)? document.tipDiv: tooltip.style; if (ie4||ie5||ns5) { // ns4 would lose all this on rewrites tipcss.width = tipWidth+"px"; tipcss.fontFamily = tipFontFamily; tipcss.fontSize = tipFontSize; tipcss.color = tipFontColor; tipcss.backgroundColor = tipBgColor; tipcss.borderColor = tipBorderColor; tipcss.borderWidth = tipBorderWidth+"px"; tipcss.padding = tipPadding+"px"; tipcss.borderStyle = tipBorderStyle; } if (tooltip&&tipFollowMouse) { if (ns4) document.captureEvents(Event.MOUSEMOVE); document.onmousemove = trackMouse; } } window.onload = initTip; /////////////////////////
上一篇:狡猾的按钮特效
下一篇:可隐藏的导航表格
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
NoomWeight减肥
微软与摩托罗拉授权协议涵盖Android和Chrome设备
亚马逊第三方平台真的卖盗版书?
任正非:华为决不上市 上市公司股东贪婪而短视
成本效益全兼顾 混合云市场前景显现
谷歌新技术进入iOS平台:将叫板苹果Siri
苹果iWatch或使用量产液态金属 将取代玻璃
微软提示XP只剩365天寿命:用户被绑架?
电信运营商员工涌入虚拟运营商,待遇差距多大?
推荐阅读
更多>
用户喊话当当网:我彻底把你们丢弃了
湘鄂情剥离餐饮业务进军大数据的底气在哪里?
200美元英特尔Android笔记本行将到来
开个房刷个卡全世界都知道个人隐私成公开秘密
Facebook以“人”为本的名义占领安卓
百度透露无人驾驶战略 研发三维交通地图
腾讯为何在与阿里百度的收购比赛中当看客?
Facebook财报前瞻:投资者仍信心不足
永不磨灭的九大尖端编程语言
国网公司将加快组建 业界人士称困难重重
摩托罗拉中国区将再裁员 助力公司变身
马斯克的特斯拉能否保持好势头
微软提示XP只剩365天寿命:用户被绑架?
传4G牌照国庆节前后发放 TD-LTE制式优先
迪信通神秘免费服务揭谜底:充电宝免费带回家
小灵通两年都无信号 顾客起诉联通公司
马云的SNS之梦有了新目标 收购“微博”
玩游戏式的趣味戒烟App:Kwit
银联布局二维码支付,“擦边球”生态不能自救
iPhone 6 Plus要召回是谣言