国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 編程 > JavaScript > 正文

JS+CSS實(shí)現(xiàn)另類(lèi)帶提示效果的豎向?qū)Ш讲藛?/h1>
2019-11-20 11:28:03
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

本文實(shí)例講述了JS+CSS實(shí)現(xiàn)另類(lèi)帶提示效果的豎向?qū)Ш讲藛巍7窒斫o大家供大家參考。具體如下:

這是一款JS+CSS打造另類(lèi)帶提示的豎向?qū)Ш讲藛危X(jué)得挺不錯(cuò),只是美工水平有限,有興趣的朋友就請(qǐng)繼續(xù)完善吧。

運(yùn)行效果截圖如下:

在線演示地址如下:

http://demo.VeVB.COm/js/2015/js-css-alert-txt-nav-menu-demo/

具體代碼如下:

<html><head><title>帶提示的豎向?qū)Ш讲藛?lt;/title><style type="text/css">#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;}</style><script type="text/javascript">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)}</script></head><body><div id="coolmenu"><a href="#" onMouseover="showtext('精品腳本代碼下載!')" onMouseout="hidetext()">開(kāi)始吧</a><a href="#" onMouseover="showtext('常用特效收集與發(fā)布')" onMouseout="hidetext()">網(wǎng)頁(yè)特效</a><a href="#" onMouseover="showtext('網(wǎng)站地圖索引')" onMouseout="hidetext()">資源分類(lèi)</a><a href="#" onMouseover="showtext('最新更新的資源')" onMouseout="hidetext()">最新更新</a><a href="#" onMouseover="showtext('網(wǎng)站最熱的下載')" onMouseout="hidetext()">下載排行</a><div id="tabledescription"></div></div></body></html>

希望本文所述對(duì)大家的JavaScript程序設(shè)計(jì)有所幫助。

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表

主站蜘蛛池模板: 鄄城县| 仁化县| 左权县| 芒康县| 阜城县| 泾川县| 榆中县| 沙洋县| 万荣县| 孟州市| 内江市| 新昌县| 咸丰县| 老河口市| 公安县| 福贡县| 华阴市| 东乡族自治县| 冀州市| 墨江| 博爱县| 东兴市| 那坡县| 吉林省| 西林县| 道孚县| 克东县| 田东县| 廉江市| 榆中县| 育儿| 波密县| 鄂托克旗| 威宁| 宜兰市| 蕲春县| 沧州市| 辛集市| 健康| 南汇区| 汝南县|