main.htm<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<SCRIPT language=JavaScript src="meun.htm"></SCRIPT>
</head><BODY onmousemove=HideMenu() 
 leftMargin=5 
topMargin=0>
<p>
<DIV id=menuDiv 
style="Z-INDEX: 2; VISIBILITY: hidden; WIDTH: 1px; POSITION: absolute; HEIGHT: 1px; BACKGROUND-COLOR: #9cc5f8"></DIV>
&nbsp;</p> 
<TABLE height=21 cellSpacing=0 cellPadding=0 width="100%" 
            align=center border=0>
  <TBODY>
    <TR> 
      <TD class=bottomindex align=middle><A 
                  href="http://www.ziyuan8.com/down/index.asp">下载首页</A> | <A 
                  onmouseover=ShowMenu(catemenu1,70) 
                  href="http://www.ziyuan8.com/down/SoftList.asp?CateID=1">ASP源码</A> 
        | <A onmouseover=ShowMenu(catemenu2,70) 
                  href="http://www.ziyuan8.com/down/SoftList.asp?CateID=2">PHP源码</A> 
        | <A onmouseover=ShowMenu(catemenu3,70) 
                  href="http://www.ziyuan8.com/down/SoftList.asp?CateID=3">CGI源码</A> 
        | <A onmouseover=ShowMenu(catemenu4,70) 
                  href="http://www.ziyuan8.com/down/SoftList.asp?CateID=4">JSP源码</A> 
        | <A onmouseover=ShowMenu(catemenu5,70) 
                  href="http://www.ziyuan8.com/down/SoftList.asp?CateID=5">.NET源码</A> 
        | <A onmouseover=ShowMenu(catemenu6,70) 
                  href="http://www.ziyuan8.com/down/SoftList.asp?CateID=6">FLASH源码</A> 
        | <A onmouseover=ShowMenu(catemenu8,70) 
                  href="http://www.ziyuan8.com/down/SoftList.asp?CateID=8">论坛相关</A> 
        | <A onmouseover=ShowMenu(catemenu9,70) 
                  href="http://www.ziyuan8.com/down/SoftList.asp?CateID=9">编程开发</A> 
        | <A onmouseover=ShowMenu(catemenu11,70) 
                  href="http://www.ziyuan8.com/down/SoftList.asp?CateID=11">常用软件</A> 
      </TD>
    </TR>
  </TBODY>
</TABLE>
<p>&nbsp;</p>
</body>
</html>

解决方案 »

  1.   

    meun.htm//下拉菜单相关代码
     var h;
     var w;
     var l;
     var t;
     var topMar = 1;
     var leftMar = -2;
     var space = 1;
     var isvisible;
     var MENU_SHADOW_COLOR='#999999';//定义下拉菜单阴影色
     var global = window.document
     global.fo_currentMenu = null
     global.fo_shadows = new Arrayfunction HideMenu() 
    {
     var mX;
     var mY;
     var vDiv;
     var mDiv;
    if (isvisible == true)
    {
    vDiv = document.all("menuDiv");
    mX = window.event.clientX + document.body.scrollLeft;
    mY = window.event.clientY + document.body.scrollTop;
    if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
    vDiv.style.visibility = "hidden";
    isvisible = false;
    }
    }
    }function ShowMenu(vMnuCode,tWidth) {
    vSrc = window.event.srcElement;
    vMnuCode = "<table id='submenu' cellspacing=0 cellpadding=3 style='width:"+tWidth+"' class=TableBorder onmouseout='HideMenu()'><tr height=23><td nowrap align=left class=TdBorder>" + vMnuCode + "</td></tr></table>"; h = vSrc.offsetHeight;
    w = vSrc.offsetWidth;
    l = vSrc.offsetLeft + leftMar+4;
    t = vSrc.offsetTop + topMar + h + space-2;
    vParent = vSrc.offsetParent;
    while (vParent.tagName.toUpperCase() != "BODY")
    {
    l += vParent.offsetLeft;
    t += vParent.offsetTop;
    vParent = vParent.offsetParent;
    } menuDiv.innerHTML = vMnuCode;
    menuDiv.style.top = t;
    menuDiv.style.left = l;
    menuDiv.style.visibility = "visible";
    isvisible = true;
        makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 3)
    }function makeRectangularDropShadow(el, color, size)
    {
    var i;
    for (i=size; i>0; i--)
    {
    var rect = document.createElement('div');
    var rs = rect.style
    rs.position = 'absolute';
    rs.left = (el.style.posLeft + i) + 'px';
    rs.top = (el.style.posTop + i) + 'px';
    rs.width = el.offsetWidth + 'px';
    rs.height = el.offsetHeight + 'px';
    rs.zIndex = el.style.zIndex - i;
    rs.backgroundColor = color;
    var opacity = 1 - i / (i + 1);
    rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
    el.insertAdjacentElement('afterEnd', rect);
    global.fo_shadows[global.fo_shadows.length] = rect;
    }
    }
      

  2.   

    //ASP源码菜单
    var catemenu1='<a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=1\">ASP聊天室类</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=2\">ASP留言日记</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=4\">ASP社区论坛</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=5\">ASP上传下载</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=6\">ASP电子商务</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=7\">ASP广告排行</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=8\">ASP投票调查</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=9\">ASP主机域名</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=10\">ASP新闻文章</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=11\">ASP搜索链接</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=12\">ASP贺卡图片</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=71\">ASP邮件列表</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=74\">ASP交友会员</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=85\">ASP计数统计</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=86\">ASP其它类别</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=1&SubID=87\">ASP影音娱乐</a><br>'
    //PHP源码菜单
    var catemenu2='<a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=88\">PHP聊天室类</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=89\">PHP留言日记</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=90\">PHP社区论坛</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=91\">PHP上传下载</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=92\">PHP电子商务</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=93\">PHP广告排行</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=94\">PHP投票调查</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=95\">PHP主机域名</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=96\">PHP新闻文章</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=97\">PHP搜索链接</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=98\">PHP贺卡图片</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=99\">PHP邮件列表</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=100\">PHP交友会员</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=101\">PHP计数统计</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=102\">PHP其它类别</a><br><a style=font-size:9pt;line-height:12pt; href=\"SoftList.asp?CateID=2&SubID=103\">PHP影音娱乐</a><br>'