Web Analytics Made Easy -
StatCounter DHTML Menu version 3.3.19 Problems w/placement - CodingForum

Announcement

Collapse
No announcement yet.

DHTML Menu version 3.3.19 Problems w/placement

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DHTML Menu version 3.3.19 Problems w/placement

    Hello,
    I love this Top Navigational 4 menu (DHTML Menu version 3.3.19) but am having some problems with it. I am pretty new to this....

    1. I have seven categories in a horizontal menu, and the categories that have submenus have a shadow underneath, but the categories that are just links to another page do not have shadows. How can I get them to be consistent?

    2. The menus do not appear in the same place in IE and Netscape (different versions of each have been tried). I have the menu placed in the middle of the page underneath a logo. Is there a way to get the menu to work if I put the code inside a table cell so it will appear in the same spot in any browser?

    Here is the link for the page:
    For 40 years & counting, Radec Electric Corporation has been providing Rochester, NY & the greater Upstate NY area with electrical contractor services.


    Here is the menu_array.js code I modified:
    /*
    DHTML Menu version 3.3.19
    Written by Andy Woolley
    Copyright 2002 (c) Milonic Solutions. All Rights Reserved.
    Plase vist http://www.milonic.co.uk/menu or e-mail [email protected]
    You may use this menu on your web site free of charge as long as you place prominent links to http://www.milonic.co.uk/menu and
    your inform us of your intentions with your URL AND ALL copyright notices remain in place in all files including your home page
    Comercial support contracts are available on request if you cannot comply with the above rules.
    This script featured on Dynamic Drive (http://www.dynamicdrive.com)
    */

    //The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
    menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
    //Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.



    ////////////////////////////////////
    // Editable properties START here //
    ////////////////////////////////////

    // Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
    if(navigator.appVersion.indexOf("MSIE 6.0")>0)
    {
    effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
    }
    else
    {
    effect = "Shadow(color='#777777', Direction=135, Strength=5)" // Stop IE5.5 bug when using more than one filter
    }


    timegap=500 // The time delay for menus to remain visible
    followspeed=5 // Follow Scrolling speed
    followrate=40 // Follow Scrolling Rate
    suboffset_top=10; // Sub menu offset Top position
    suboffset_left=10; // Sub menu offset Left position

    style1=[ // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
    "navy", // Mouse Off Font Color
    "E4E4F4", // Mouse Off Background Color
    "ffebdc", // Mouse On Font Color
    "000080", // Mouse On Background Color
    "000000", // Menu Border Color
    10, // Font Size in pixels
    "normal", // Font Style (italic or normal)
    "bold", // Font Weight (bold or normal)
    "Verdana", // Font Name
    4, // Menu Item Padding
    "arrow.gif", // Sub Menu Image (Leave this blank if not needed)
    "E4E4F4", // 3D Border & Separator bar
    "000000", // 3D High Color
    "000099", // 3D Low Color
    "", // Current Page Item Font Color (leave this blank to disable)
    "", // Current Page Item Background Color (leave this blank to disable)
    "arrowdn.gif", // Top Bar image (Leave this blank to disable)
    "ffffff", // Menu Header Font Color (Leave blank if headers are not needed)
    "000099", // Menu Header Background Color (Leave blank if headers are not needed)
    ]



    addmenu(menu=[ // This is the array that contains your menu properties and details
    "mainmenu", // Menu Name - This is needed in order for the menu to be called
    135, // Menu Top - The Top position of the menu in pixels
    200, // Menu Left - The Left position of the menu in pixels
    , // Menu Width - Menus width in pixels
    1, // Menu Border Width
    , // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
    style1, // Properties Array - this is set higher up, as above
    1, // Always Visible - allows the menu item to be visible at all time (1=on/0=off)
    "left", // Alignment - sets the menu elements text alignment, values valid here are: left, right or center
    effect, // Filter - Text variable for setting transitional effects on menu activation - see above for more info
    , // Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
    1, // Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
    , // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
    , // Position of TOP sub image left:center:right
    , // Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
    , // Right To Left - Used in Hebrew for example. (1=on/0=off)
    , // Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
    , // ID of the div you want to hide on MouseOver (useful for hiding form elements)
    , // Reserved for future use
    , // Reserved for future use
    , // Reserved for future use

    ,"&nbsp;Home&nbsp;","index.htm",,"",1
    ,"&nbsp;Project&nbsp;Gallery&nbsp;&nbsp;&nbsp;","show-menu=projectgallery",,"",1
    ,"&nbsp;Why&nbsp;RADEC&nbsp;&nbsp;&nbsp;","show-menu=whyradec",,"",1
    ,"&nbsp;Join&nbsp;Our&nbsp;Team&nbsp;&nbsp;&nbsp;","show-menu=joinourteam",,"",1
    ,"&nbsp;Services&nbsp;&nbsp;&nbsp;&nbsp;","show-menu=services",,"",1
    ,"&nbsp;Special Systems&nbsp;","specsystems.htm",,"",1
    ,"&nbsp;Contact&nbsp;Us&nbsp;","contactus.html",,"",1
    ])

    addmenu(menu=["home",
    ,"Home","index.htm",,,0
    ])


    addmenu(menu=["projectgallery",
    ,,140,1,,style1,0,"left","randomdissolve(duration=0.5);Shadow(color='#999999', Direction=135, Strength=5)",0,,,,,,,,,,,
    ,"Commercial","commercial.htm",,,0
    ,"Industrial","industrial.htm",,,0
    ,"Senior Living","senior.htm",,,0
    ,"Multifamily/Dormitory","multifamily.htm",,,0
    ,"Lighting","lighting.htm",,,0
    ,"Computer Networking","networking.htm",,,0
    ,"Teledata","teledata.htm",,,0
    ,"UPS/Generators","generators.htm",,,0
    ,"Retail","retail.htm",,,0
    ])


    addmenu(menu=["generalnews",
    ,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
    ,"CNN","http://www.cnn.com",,,0
    ,"MSNBC","http://www.msnbc.com",,,0
    ,"ABC News","http://www.abcnews.com",,,0
    ,"Vancouver Local News","show-menu=canadanews",,,0
    ,"BBC News","http://news.bbc.co.uk",,,0
    ])

    addmenu(menu=["canadanews",
    ,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
    ,"CTV News","http://www.ctvnews.com",,,
    ,"Vancouver Sun","http://www.canada.com/vancouver/vancouversun/",,,
    ])

    addmenu(menu=["technonews",
    ,,110,1,"",style1,,"left",effect,,,,,,,,,,,,
    ,"TechWeb","http://www.cnn.com",,,0
    ,"News.com","http://www.news.com",,,0
    ,"Wired News","http://www.wired.com",,,0
    ,"Slashdot","http://www.slashdot.com",,,0
    ])



    addmenu(menu=["whyradec",
    ,,105,1,,style1,0,"left","randomdissolve(duration=0.5);Shadow(color='#999999', Direction=135, Strength=5)",0,,,,,,,,,,,
    ,"Top Ten Reasons","topten_only.htm",,,1
    ])

    addmenu(menu=["joinourteam",,,120,1,,style1,0,"left","randomdissolve(duration=0.5);Shadow(color='#999999', Direction=135, Strength=5)",0,,,,,,,,,,,
    ,"Employee Benefits","joinourteam.htm#EMPLOYEEBENEFITS",,,0
    ,"Hiring Policies","joinourteam.htm#HIRINGPOLICIES",,,0
    ,"Current Openings","joinourteam.htm#CURRENTOPENINGS",,,0
    ])

    addmenu(menu=["services",
    ,,80,1,,style1,0,"left","randomdissolve(duration=0.5);Shadow(color='#999999', Direction=135, Strength=5)",0,,,,,,,,,,,
    ,"Commercial","commserv.htm",,,0
    ,"Industrial","indusserv.htm",,,0
    ,"Residential","resserv.htm",,,0
    ,"Generators","genserv.htm",,,0
    ,"All Services","allserv.htm",,,0
    ])

    addmenu(menu=["Other",,,140,1,,style1,0,"left","randomdissolve(duration=0.5);Shadow(color='#999999', Direction=135, Strength=5)",0,,,,,,,,,,,
    ,"Menu Authors Site","http://www.milonic.co.uk/menu",,"Milonic DHTML Menu Site",1
    ])


    dumpmenus()
Working...
X