不知道是不是这种:
把如下代码加入<body>区域中
<STYLE type="text/css">
A.menutext {font-family:"宋体"; color:#FFFFFF; font-size:9pt; text-decoration:none;}
A.menutext:visited {color:#FFFFFF;}
A.menutext:hover {color:#FF0033;; text-decoration: underline}
.menubox {width:120; padding-left:0; padding-bottom:5; display:none; position:absolute; background-color: #0066CC; z-index:9;}
</STYLE>
<SCRIPT language="javascript">
var nonie4 = "noneie.htm";
//设置非ie4++以上版本浏览器的连接页面;因为改菜单只适用于IE4++;
var bAnimate = true;
//是否动态展开效果
var nStep = 10;
//动态效果速度
var nDelay = 20;
//动态效果延迟时间
var nChunk; 
var useragent = navigator.userAgent;// 如果检测浏览器不是IE4++以上版本导向上面指定的noneie页面;
if (useragent.indexOf("MSIE")==-1) {
window.location = nonie4;
} else {
if ((navigator.appVersion.substring(0,1) < 4) || 
(useragent.indexOf("Windows 3.1") != -1) ||
(useragent.indexOf("X11") != -1) ||
(useragent.indexOf("Mac") != -1))
{
window.location = nonie4;
}
}
//主函数,3个参数分别是ID标志,x,y轴坐标;
function doMenu(id, x, y) {
var thisMenu = document.all(id);
if (thisMenu == AnimatedMenu) {
window.event.cancelBubble = true;
return false;
}if (AnimatedMenu != null) AnimatedMenu.style.display = "none";window.event.cancelBubble = true;// 设置MENU的位置坐标if( x < 0) {
x = document.body.clientWidth + x;
}
thisMenu.style.left = x;
thisMenu.style.top = y;
AnimatedMenu = thisMenu;if (bAnimate) {
// 如果前面设置了动态显示,先初始化一些参数;
thisMenu.style.clip = "rect(0 0 0 0)";
thisMenu.style.display = "block";
nChunk = nStep;
window.setTimeout("showMenu()", nDelay);
}
else {
// 不是动态显示,仅显示之;
AnimatedMenu.style.display = "";
}
}function showMenu() {
AnimatedMenu.style.clip = "rect(0 "+ nChunk + "% " + nChunk + "% 0)"
nChunk += nStep;
nChunk<=100?window.setTimeout("showMenu()",nDelay):null 
}function hideMenu(){
AnimatedMenu.style.display = "none";
AnimatedMenu = StartMenu;
window.event.cancelBubble = true;
}function keepMenu(){
window.event.cancelBubble = true;
}document.onmouseover = hideMenu; 
</SCRIPT>
<SPAN ID='StartMenu' STYLE='display:none; position:absolute;'></SPAN>
<A TARGET=_top HREF="#" onMouseover="doMenu('menu1', 15, 80)">菜单一</A>
<A TARGET=_top HREF="#" onMouseover="doMenu('menu2', 100, 80)">菜单二</A>
<SCRIPT language="javascript">
var AnimatedMenu = StartMenu;
</SCRIPT>
<SPAN ID='menu1' onMouseover='keepMenu();' CLASS='menubox'>
<A CLASS='menutext' target=_top HREF="javascript:if(confirm('http://www.163.com/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.163.com/'" tppabs="http://www.163.com/">网易</A> <BR>
<A CLASS='menutext' target=_blank HREF="javascript:if(confirm('http://www.sina.com.cn/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.sina.com.cn/'" tppabs="http://www.sina.com.cn/">新浪</A><BR>
<A CLASS='menutext' target=_blank HREF="javascript:if(confirm('http://www.sohu.com/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.sohu.com/'" tppabs="http://www.sohu.com/">搜狐</A> <BR>
<A CLASS='menutext' target=_blank HREF="javascript:if(confirm('http://www.yahoo.com.cn/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.yahoo.com.cn/'" tppabs="http://www.yahoo.com.cn/">雅虎</A> <BR>
</SPAN>
<SPAN ID='menu2' onMouseover='keepMenu();' CLASS='menubox'>
<A CLASS='menutext' target=_top HREF='#'>Sample Page</A> <BR>
<A CLASS='menutext' target=_top HREF='#'>Sample Page</A> <BR>
<A CLASS='menutext' target=_top HREF='#'>Sample Page</A> <BR>
</SPAN>

解决方案 »

  1.   

    用的是图层的显示和隐藏啊http://www.abszreo.com/csdn/qqmenu1.htm
      

  2.   

    不是这种,我重描述一下:如果你不点击时,右边菜单只有我的“公用文件夹”和“个人文件夹”,当点击“公用文件夹”时,下面又会出现‘B部’、‘A部’等,而个人文件夹是收缩,只有当点击时它才打开,那么“公用文件夹”又收缩起来了,就像我们QQ里面的那种,黑客、陌生人、我的好友等下面又有好多子项。
      

  3.   

    http://fason.nease.net/zhuanti/menu/qq.htm