主题:  关于下拉菜单的问题

renlingna

职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2004/5/6 17:43:12
#12004/12/13 9:46:17
各位朋友大家好,我想作一个下拉菜单,请问哪位朋友知道哪里可下载这个DREAMWEAVER的插件,或者是哪们朋友给提供一个带有二三级下拉菜单的代码,我在这里先谢过了。



清风冷月

职务:普通成员
等级:1
金币:0.0
发贴:10
注册:2004/10/15 10:18:45
#22004/12/13 9:55:38
去经典论坛吧
那里有很多!



清风冷月

职务:普通成员
等级:1
金币:0.0
发贴:10
注册:2004/10/15 10:18:45
#32004/12/13 9:57:16
要么你看看这个行吗??

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0040)http://vip.5d.cn/flood/menu/mutimenu.htm -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE>BODY {
    FONT-SIZE: 9pt; COLOR: black; TEXT-DECORATION: none
}
TD {
    FONT-SIZE: 9pt; COLOR: black; TEXT-DECORATION: none
}
A {
    FONT-SIZE: 9pt; COLOR: black; TEXT-DECORATION: none
}
.normal {
    PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px
}
.up {
    BORDER-RIGHT: #999999 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: #999999 1px solid; PADDING-LEFT: 1px; BACKGROUND: #cccccc; PADDING-BOTTOM: 1px; BORDER-LEFT: #999999 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #999999 1px solid
}
.down {
    BORDER-RIGHT: #dbdbdb 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: #dbdbdb 1px solid; PADDING-LEFT: 1px; BACKGROUND: #dbdbdb; PADDING-BOTTOM: 1px; BORDER-LEFT: #dbdbdb 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #dbdbdb 1px solid
}
.menuv {
    PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FILTER: revealTrans(transition=23,duration=0.5); PADDING-BOTTOM: 2px; PADDING-TOP: 2px
}
</STYLE>

<SCRIPT>
//闪烁的表格边框
function fla[脏话,已过滤](){if(!document.all)return;if (td123.style.borderColor=="black"td123.style.borderColor="#999999";else td123.style.borderColor="black"}setInterval("fla[脏话,已过滤]()",500)
//渐入的效果,改变alpha值
function high(image){theobject=image,highlighting=setInterval("highlightit(theobject)",100)}function low(image){clearInterval(highlighting),image.filters.alpha.opacity=50}function highlightit(cur2){if (cur2.filters.alpha.opacity<100)cur2.filters.alpha.opacity+=20;else if(window.highlighting)clearInterval (highlighting)}
//拖动层的js
var over=false,down=false,divleft,divtop;function move(){if(down){plane.style.left=event.clientX-divleft;plane.style.top=event.clientY-divtop;}}
//滑动层
function bodyload()
{
if(plane.style.pixelTop!=0)
{
plane.style.pixelTop-=10
setTimeout('bodyload()',1)
}
}
//渐变显示层
function Show(divid) {
divid.filters.revealTrans.apply();
divid.style.visibility = "visible";
divid.filters.revealTrans.play();
}
function Hide(divid) {
divid.filters.revealTrans.apply();
divid.style.visibility = "hidden";
divid.filters.revealTrans.play();
}
</SCRIPT>

<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY onmousemove=move() onload=bodyload()>
<DIV onmouseup=down=false
onmousedown=down=true;divleft=event.clientX-parseInt(plane.style.left);divtop=event.clientY-parseInt(plane.style.top)
id=plane
style="Z-INDEX: 1; LEFT: 0px; WIDTH: 1px; POSITION: absolute; TOP: 500px; HEIGHT: 1px">
<TABLE id=td123
style="BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; CURSOR: hand; BORDER-BOTTOM: #999999 1px solid"
cellSpacing=2 cellPadding=0 width=100 bgColor=#f4f4f4 border=0>
<TBODY>
<TR>
<TD
style="BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; CURSOR: move; BORDER-BOTTOM: #999999 1px solid"
bgColor=#cccccc height=20>
<DIV align=center>多级滑动菜单</DIV></TD></TR>
<TR>
<TD onmouseup="this.className='up'" class=normal
onmousedown="this.className='down'"
onmouseover="this.className='up',high(this),Show(menu1)&#13;&#10;"
style="FILTER: alpha(opacity=50)"
onmouseout="this.className='normal',low(this),menu1.style.visibility='hidden'">
<DIV align=right>有下级菜单&gt;&gt;</DIV></TD></TR>
<TR>
<TD onmouseup="this.className='up'" class=normal
onmousedown="this.className='down'"
onmouseover="this.className='up',high(this),Show(menu2)"
style="FILTER: alpha(opacity=50)"
onmouseout="this.className='normal',low(this),menu2.style.visibility='hidden'">
<DIV align=right>有下级菜单&gt;&gt;</DIV></TD></TR>
<TR>
<TD onmouseup="this.className='up'" class=normal
onmousedown="this.className='down'"
onmouseover="this.className='up',high(this)"
style="FILTER: alpha(opacity=50)"
onmouseout="this.className='normal',low(this)">
<DIV align=right>无下级菜单&gt;&gt;</DIV></TD></TR>
<TR>
<TD onmouseup="this.className='up'" class=normal
onmousedown="this.className='down'"
onmouseover="this.className='up',high(this)"
style="FILTER: alpha(opacity=50)"
onmouseout="this.className='normal',low(this)">
<DIV align=right>无下级菜单&gt;&gt;</DIV></TD></TR></TBODY></TABLE>
<DIV class=menuv id=menu1 onmouseover="this.style.visibility='visible'"
style="Z-INDEX: 1; LEFT: 96px; VISIBILITY: hidden; WIDTH: 105px; POSITION: absolute; TOP: 24px"
onmouseout="this.style.visibility='hidden'">
<TABLE
style="BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; CURSOR: hand; BORDER-BOTTOM: #999999 1px solid"
cellSpacing=2 cellPadding=0 width=100 align=right bgColor=#f4f4f4 border=0>
<TBODY>
<TR>
<TD onmouseup="this.className='up'" class=normal
onmousedown="this.className='down'"
onmouseover="this.className='up',high(this)"
style="FILTER: alpha(opacity=50)"
onmouseout="this.className='normal',low(this)">
<DIV align=center>子菜单</DIV></TD></TR>
<TR>
<TD onmouseup="this.className='up'" class=normal
onmousedown="this.className='down'"
onmouseover="this.className='up',high(this)"
style="FILTER: alpha(opacity=50)"
onmouseout="this.className='normal',low(this)">
<DIV align=center>子菜单</DIV></TD></TR>
<TR>
<TD onmouseup="this.className='up'" class=normal
onmousedown="this.className='down'"
onmouseover="this.className='up',high(this)"
style="FILTER: alpha(opacity=50)"
onmouseout="this.className='normal',low(this)">
<DIV align=center>子菜单</DIV></TD></TR>
<TR>
<TD onmouseup="this.className='up'" class=normal
onmousedown="this.className='down'"
onmouseover="this.className='up',high(this)"
style="FILTER: alpha(opacity=50)"
onmouseout="this.className='normal',low(this)">
<DIV align=center>子菜单</DIV></TD></TR></TBODY></TABLE></DIV>
<DIV class=menuv id=menu2 onmouseover="this.style.visibility='visible'"
style="Z-INDEX: 1; LEFT: 96px; VISIBILITY: hidden; WIDTH: 105px; POSITION: absolute; TOP: 45px"
onmouseout="this.style.visibility='hidden'">
<TABLE
style="BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; CURSOR: hand; BORDER-BOTTOM: #999999 1px solid"
cellSpacing=2 cellPadding=0 width=100 align=right bgColor=#f4f4f4 border=0>
<TBODY>
<TR>
<TD onmouseup="this.className='up'" class=normal
onmousedown="this.className='down'"
onmouseover="this.className='up',high(this)"
style="FILTER: alpha(opacity=50)"
onmouseout="this.className='normal',low(this)">
<DIV align=center>子菜单</DIV></TD></TR>
<TR>
<TD onmouseup="this.className='up'" class=normal
onmousedown="this.className='down'"
onmouseover="this.className='up',high(this)"
style="FILTER: alpha(opacity=50)"
onmouseout="this.className='normal',low(this)">
<DIV align=center>子菜单</DIV></TD></TR>
<TR>
<TD onmouseup="this.className='up'" class=normal
onmousedown="this.className='down'"
onmouseover="this.className='up',high(this)"
style="FILTER: alpha(opacity=50)"
onmouseout="this.className='normal',low(this)">
<DIV align=center>子菜单</DIV></TD></TR>
<TR>
<TD onmouseup="this.className='up'" class=normal
onmousedown="this.className='down'"
onmouseover="this.className='up',high(this)"
style="FILTER: alpha(opacity=50)"
onmouseout="this.className='normal',low(this)">
<DIV align=center>子菜单</DIV></TD></TR></TBODY></TABLE></DIV></DIV></BODY></HTML>



红叶舞香山

职务:普通成员
等级:1
金币:1.1
发贴:269
注册:2004/4/5 22:03:45
#42004/12/14 11:38:49
是不是这种风格的呢???
相关文件:点这儿打开



renlingna

职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2004/5/6 17:43:12
#52004/12/15 14:03:07
我用动作事件作了一个下拉菜单,但是不是很稳定,有时候鼠标还没有放到字的上面层就消失了,是不是这种方法本身就不是很稳定,只适合作一级下拉菜单。



renlingna

职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2004/5/6 17:43:12
#62004/12/15 14:03:58
上面这位朋友给我的链接打不开呀。