爱易网
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 浏览次数:20226 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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; /////////////////////////
上一篇:狡猾的按钮特效
下一篇:可隐藏的导航表格
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
北京今日实现用支付宝钱包为公交卡充值
苹果收购Beats交易或将延期尚需解决5大问题
雷军会做赔钱生意?迅雷跌破发行价 市值仅7亿美元
马云自称在美国曾被绑票
雅安地震救灾前线的科技之手 微弱而暖和
传诺基亚5月14日发布会推出Lumia 950
墨迹也要做硬件,工具类应用如何“变异”的
英特尔涉嫌垄断 欧盟或开出史上最高罚单
众贷网满月开张 网络金融监管再受质疑
推荐阅读
更多>
刘强东:京东上市融资用于开拓三至六线城市
惠普中国转型只是缩影 未来开展不可预期
微软张亚勤趋势判断:未来三十年属于物理化互联网
阿里收购UC 五年姻缘换来移动新格局
微信企业号必须搬走四座大山,否则只能铩羽而归!
看病也能用支付宝了 马云的又一盘大棋
中移动落马高管盘点:广东移动成反腐重地
微信今天大面积崩溃 腾讯:因光缆施工被挖断
中国移动承诺再降4G资费 网络漫游至50个国家
首家国有独资P2P平台上线 或预示政策日渐明朗
国网公司将加快组建 业界人士称困难重重
蓝宝石PK大猩猩玻璃:作为屏幕谁更有优势?
中国联通困局:遭遇OTT宽带4G三大难题
阿里国际化再落子:2.49亿美元投资新加坡邮政
中国电信内外受困 去电信化思绪待改
HDS发布《2013中国CIO洞察白皮书》
200美元英特尔Android笔记本行将到来
喜大普奔:2016年国内乘客有望在飞机上使用手机
支付宝被曝严重破绽 隐私平安再受质疑
美国电影协会在华起诉迅雷侵权 要求赔偿并道歉