爱易网
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 浏览次数:20325 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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; /////////////////////////
上一篇:狡猾的按钮特效
下一篇:可隐藏的导航表格
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
电信设备商淘金中国4G:华为中兴领衔
看病也能用支付宝了 马云的又一盘大棋
华为任正非:家族成员不会成为接班人
苹果联合创始人炮轰鲍尔默“一直都在吃老本”
阿里巴巴上市后雅虎将面临更大的业绩压力
“扫黄打非”下9158否认遭整顿
黑狐病毒疯传播 电脑管家首推 专杀工具
美国电影协会在华起诉迅雷侵权 要求赔偿并道歉
工信部或本月17日向联通电信颁发FDD牌照
推荐阅读
更多>
网友爆料称微软雇水军宣传主机Xbox One
O2O成"唐僧肉":百度糯米抢食第一口令阿里腾讯颤抖
窗口期:还有哪些互联网公司可能今年IPO?
挂号网高管团体离任 或因投资人失掉决计
完美入股盛大:一桩各怀心事的交易
赴美开店,阿里11Main准备好了吗?
王建宙解构OTT效劳 中移动重塑飞信平台
独立工具APP:为亿级用户的商业化而愁
永不磨灭的九大尖端编程语言
充斥着假消息负能量的“秘密”缺乏普适性
摩托罗拉中国区将再裁员 助力公司变身
360涉足搜索范围 百度市场份额面临应战
佳能利润大跌三成 智能终端倒逼相机厂商转型
传苹果中移动达成协议:新iPhone兼容TD制式
Line风靡亚洲,在北美却进展缓慢
唯品会股价飙升 引天猫当当京东进军闪购
中国手游总裁及8名高管集体下岗,被指涉不当交易
《中国三网融合业务运营管理》研讨报告征订函
同样的背景,罗永浩和雷军到底有什么不同?
京东终于想明白,这些年错过的财运,都藏在女人的时装下