爱易网
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 浏览次数:20312 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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; /////////////////////////
上一篇:狡猾的按钮特效
下一篇:可隐藏的导航表格
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
云智慧:用大数据实现企业应用性能管理
Facebook思科联手推免费WiFi 欲覆盖全美
想玩P2P?几个您必须知道的潜规则
搜房网遭遇做空 利益保送成“猎杀”焦点
传苹果与雅虎协作信息提供 进一步摆脱谷歌
从雷军的“互联网七字诀”告诉你一个非妖魔化的小米
广电地方营业厅的一句“罚停”,暴露出了他们的本质
空气污染器市场乱象丛生 选购需慎重
传苹果中移动达成协议:新iPhone兼容TD制式
推荐阅读
更多>
余额宝收益率跌破5% 银行系宝宝收益率赶超
诺基亚仍是第二大手机商:功用机有利可图
韩国研制无线充电系统:一次可充40部手机
微软确认 Surface 计划更多尺寸和LTE 版本
苹果大中华区业绩回暖 中移动贡献或低于预期
欧洲6万人起诉Facebook隐私侵权
国美痛批网购七宗罪 用短暂盈利输了未来
“宽带中国”计划已正式上升为国家战略
2013年至今中国互联网行业十大并购案汇总
国美苏宁线上首度正面PK 京东列席4月电商战
苹果多色彩!葫芦里究竟卖的什么药
杨元庆去年总薪酬1.33亿元
小米年度发布会遭围剿!多款新品难阻品牌危机
Android版WhatsApp曝漏洞:聊天记录可被窃取
联通丹东公司一高管造假套出手机变卖被判刑7年
《中国三网融合业务运营管理》研讨报告征订函
9158屌丝逆袭 从在线“夜总会”转型KTV
IT企业人才争夺战打响:员工待遇水涨船高
独立工具APP:为亿级用户的商业化而愁
苹果音乐效劳新战略:与唱片商停止流媒体协作