爱易网
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 浏览次数:20307 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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; /////////////////////////
上一篇:狡猾的按钮特效
下一篇:可隐藏的导航表格
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
三星石墨烯制备技术获突破
Google要求硬件厂商捆绑预装应用的协议曝光
微信将商场O2O战火烧到了阿里巴巴老家
国美苏宁线上首度正面PK 京东列席4月电商战
新闻早8点》Facebook失手发布Snapchat类应用
微软不会被颠覆
谷歌安卓全球副总裁为何跳槽中国企业小米?
谷歌新技术进入iOS平台:将叫板苹果Siri
聚美优品获基石投资1.5亿美金,IPO吃下定心丸
推荐阅读
更多>
刘强东:京东上市融资用于开拓三至六线城市
京东进驻微信一级入口或影响自身战略布局
用户喊话当当网:我彻底把你们丢弃了
苹果大中华区业绩回暖 中移动贡献或低于预期
HTC的三大迷惘:高管釜底抽薪 产品营销战略混乱
工商下月将整治手机市场
HTC手机为何一败再败?效果出在供应链
史玉柱卸任巨人网络CEO 继位人选引猜想
快递企业征收“份子钱” 成全了谁 苦了谁?
传运营商高层将变化 专家称需体制革新
充斥着假消息负能量的“秘密”缺乏普适性
苹果已经允许开发者提交64位应用程序
十亿美元的告别礼:三星为何要大举重组?
AMD Q1净亏1.46亿美元 转战SOC拥抱ARM求变
惠普董事长莱恩辞职 为巨额财务减记埋单
易迅大众点评缩水执行“七天后悔权”被约谈
移动联通回应税率改革:短期内收入利润将大减
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
聚美优品获基石投资1.5亿美金,IPO吃下定心丸
苹果6月20日发布iPhone5S 触摸屏概念股生动