900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > JS+CSS实现另类带提示效果的竖向导航菜单【javascript】

JS+CSS实现另类带提示效果的竖向导航菜单【javascript】

时间:2019-08-04 07:15:02

相关推荐

JS+CSS实现另类带提示效果的竖向导航菜单【javascript】

web前端|js教程

JS,CSS,带提示,竖向导航菜单,JS导航菜单

web前端-js教程

本文实例讲述了JS+CSS实现另类带提示效果的竖向导航菜单。分享给大家供大家参考。具体如下:

ext js 4.1示例源码,vscode51单片机插件,ubuntu作为开发,tomcat工程没部署进去,爬虫饲养群,php微论坛系统,seo是什么职能做到的lzw

这是一款JS+CSS打造另类带提示的竖向导航菜单,觉得挺不错,只是美工水平有限,有兴趣的朋友就请继续完善吧。

无需数据库的web记事本源码,ubuntu下安装wps,prtthon爬虫下载音乐,php var,江夏seo价格lzw

运行效果截图如下:

微商发圈源码,ubuntu重启之后黑屏,爬虫 5sing,php中!=,seo需要编程lzw

在线演示地址如下:

/js//js-css-alert-txt-nav-menu-demo/

具体代码如下:

带提示的竖向导航菜单#coolmenu{border: 1px solid black;width: 160px;background-color: #E6E6E6;}#coolmenu a{font: bold 13px Verdana;padding: 2px;padding-left: 4px;display: block;width: 100%;color: black;text-decoration: none;border-bottom: 1px solid black;}html>body #coolmenu a{width: auto;}#coolmenu a:hover{background-color: black;color: white;}#tabledescription{width: 100%;height: 3em;padding: 2px;filter:alpha(opacity=0);-moz-opacity:0;}var baseopacity=0function showtext(thetext){if (!document.getElementById)returntextcontainerobj=document.getElementById("tabledescription")browserdetect=textcontainerobj.filters? "ie" : typeof textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""instantset(baseopacity)document.getElementById("tabledescription").innerHTML=thetexthighlighting=setInterval("gradualfade(textcontainerobj)",50)}function hidetext(){cleartimer()instantset(baseopacity)}function instantset(degree){if (browserdetect=="mozilla")textcontainerobj.style.MozOpacity=degree/100else if (browserdetect=="ie")textcontainerobj.filters.alpha.opacity=degreeelse if (document.getElementById && baseopacity==0)document.getElementById("tabledescription").innerHTML=""}function cleartimer(){if (window.highlighting) clearInterval(highlighting)}function gradualfade(cur2){if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.2, 0.99)else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)cur2.filters.alpha.opacity+=20else if (window.highlighting)clearInterval(highlighting)}

开始吧网页特效资源分类最新更新下载排行

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。