|
首页
|
网页设计
|
w3c标准
|
flash动画
|
平面设计
|
经典文章
|
特约专题
|
资源下载
|
健康频道
|
重庆品牌网站
|
留言簿
|
技术文章
资源下载
经典素材
社区论坛
您现在的位置:
vi设计在线
>>
经典文章
>>
网页设计
>>
技术教程
>> 正文
网页常用下拉式导航菜单
热
[ 作者:佚名 转贴自:本站原创 点击数:2175 更新时间:2007/2/3 文章录入:
QQ392398985
]
减小字体
增大字体
把此代码放在<HEAD></head>之间 <style type="text/css"> <!-- body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 4px; margin-right: 0px} A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none } A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline } a:active { font: 9pt "宋体"; cursor: hand; color: #FF0033 } --></style> <script language="javascript1.2"> scores = new Array(20);var numTotal=0;NS4 = (document.layers) ? 1 : 0;IE4 = (document.all) ? 1 : 0;ver4 = (NS4 || IE4) ? 1 : 0;if (ver4) { with (document) { write("<STYLE TYPE='text/css'>"); if (NS4) { write(".parent {position:absolute; visibility:visible}"); write(".child {position:absolute; visibility:visible}"); write(".regular {position:absolute; visibility:visible}") } else { write(".child {display:none}") } write("</STYLE>"); }}function getIndex(el) { ind = null; for (i=0; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.id == el) { ind = i; break; } } return ind;}function arrange() { nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height; for (i=firstInd+1; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.visibility != "hide") { whichEl.pageY = nextY; nextY += whichEl.document.height; } }}function initIt(){ if (!ver4) return; if (NS4) { for (i=0; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide"; } arrange(); } else { divColl = document.all.tags("DIV"); for (i=0; i<divColl.length; i++) { whichEl = divColl(i); if (whichEl.className == "child") whichEl.style.display = "none"; } }}function expandIt(el) { if (!ver4) return; if (IE4) { whichEl1 = eval(el + "Child"); for(i=1;i<=numTotal;i++){ whichEl = eval(scores[i] + "Child"); if(whichEl!=whichEl1) { whichEl.style.display = "none"; } } whichEl1 = eval(el + "Child"); if (whichEl1.style.display == "none") { whichEl1.style.display = "block"; } else { whichEl1.style.display = "none"; } } else { whichEl = eval("document." + el + "Child"); for(i=1;i<=numTotal;i++){ whichEl = eval("document." + scores[i] + "Child"); if(whichEl!=whichEl1) { whichEl.visibility = "hide"; } } if (whichEl.visibility == "hide") { whichEl.visibility = "show"; } else { whichEl.visibility = "hide"; } arrange(); }}onload = initIt; </script>
上一篇文章:
下拉菜单
下一篇文章:
网页常用浮动菜单
【
发表评论
】【
告诉好友
】【
打印此文
】【
关闭窗口
】
技术文章
资源下载
经典素材
社区论坛
中大型美容美发店老…
[
1062
]
重庆多达学习俄语培…
[
2294
]
重庆恒祥广告有限公…
[
1992
]
重庆市南方阻燃电线…
[
2404
]
重庆舞美灯光音响有…
[
3148
]
重庆德鼎滤油机有限…
[
1910
]
重庆民生建材有限公…
[
2351
]
重庆集元科技有限公…
[
4130
]
重庆倍润商贸有限公…
[
2016
]
重庆腾达展览有限公…
[
3083
]
帝一网络创始人宣…
--[
3180
]
重庆vi设计在线祝…
--[
2743
]
重庆帝一网络书生…
--[
2856
]
馋嘴鸭的起伏和经…
--[
3001
]
机器感觉“卡”的…
--[
2931
]
ActionScript3打造…
--[
5770
]
在ASP文件中读取H…
--[
7241
]
vi设计经典案例
--[
63845
]
帅到掉渣-爆笑版勇…
--[
7067
]
一个女孩写的经典…
--[
6828
]
没有相关文章
(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
没有任何评论
|
设为首页
|
加入收藏
|
联系站长
|
友情链接
|
版权申明
|
重庆网站建设
|
版权所有: vi设计在线 © 2005-2018 网站备案序号:渝ICP备06003824号
技术支持:帝一网络(重庆网站建设专家)