主题:  网页菜单之---抄袭微软风格疑惑

policies

职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2002/1/29 21:29:46
#12002/1/29 21:38:16
请大家到我的主页看看.http://lantianl.126.com
可不可以把主菜单之间的距离等分?

编辑历史:[这消息被policies编辑过(编辑时间2002-01-29 21:39:18)]
[这消息被policies编辑过(编辑时间2002-01-30 00:29:04)]
[这消息被policies编辑过(编辑时间2002-01-30 00:30:02)]


5D公害

职务:普通成员
等级:9
金币:10.3
发贴:36272
注册:2002/1/13 9:52:57
#22002/1/30 9:54:11
当然可以罗,看你开始如何做的



policies

职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2002/1/29 21:29:46
#32002/1/30 11:23:15
帮帮忙吧!
原menu。js文件:
if (document.all) {n=0;ie=1;fShow="visible";fHide="hidden";}
if (document.layers) {n=1;ie=0;fShow="show"; fHide="hide";}

window.onerror=new Function("return true")
////////////////////////////////////////////////////////////////////////////
// Function Menu() //
////////////////////////////////////////////////////////////////////////////
rightX = 0;
function Menu()
{
    this.bgColor = "#008080";
    if (ie) this.menuFont = "bold xx-small Verdana";
    if (n) this.menuFont = "bold x-small Verdana";
//    this.fontColor = "white";

    this.addItem = addItem;
    this.addSubItem = addSubItem;
    this.showMenu = showMenu;
    this.mainPaneBorder = 0;
    this.subMenuPaneBorder = 0;

    this.subMenuPaneWidth = 150;

    lastMenu = null;
    
    rightY = 0;
    leftY = 0;
    leftX = 0;

    HTMLstr = "";
    HTMLstr += "\n";
    HTMLstr += "\n";
    if (ie) HTMLstr += "
\n";
//    if (n) HTMLstr += "\n";
    HTMLstr += "\n";
    HTMLstr += "";
    if (n) HTMLstr += "";
    HTMLstr += "\n";
    HTMLstr += "
 ";
    HTMLstr += "\n";
    HTMLstr += "\n";
    HTMLstr += "\n";
    if (n) HTMLstr += "
\n";
    HTMLstr += "\n";
    HTMLstr += "\n";
    HTMLstr += "\n";
    HTMLstr += "\n";
    HTMLstr += "\n";
    if (ie) HTMLstr+= "
\n";
//    if (n) HTMLstr+= "\n";
    HTMLstr += "\n";
}

function addItem(idItem, text, hint, location, altLocation)
{
    var Lookup = "";
    if (HTMLstr.indexOf(Lookup) != -1)
    {
        alert(idParent + " already exist");
        return;
    }
    var MENUitem = "";
    MENUitem += "\n\n";
    if (n)
    {
        MENUitem += "";
        MENUitem += "";
        MENUitem += "| ";
        MENUitem += text;
        MENUitem += "
";
        MENUitem += "
";
    }
    if (ie)
    {
        MENUitem += "
\n";
        MENUitem += "\n";
        MENUitem += "