Question

drop down menu

Asked by: lj8866

Hi. I want to create a drop down menu for a website I am designing. The menu drops down from an image and will do a mouseover image too. For an idea of what I want, go to

http://www.columbia.edu/cu/ssw/indexnew6.html

The drop down menu is on "prospective students"

The mouseover I want is shown in the other blue icons, "current students" "faculty" "alumni" etc.

The problem with the menu appears when you resize the window, you'll notice that it moves around. Otherwise, it works just fine.

Any ideas?

-lj8866

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-07-01 at 09:46:38ID20665411
Tags

menu

,

drop

,

down

Topic

JavaScript

Participating Experts
1
Points
180
Comments
11

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. 2 Drop down menus ?
    Hi there, We are trying (with-out success) to have two drop down menus working in the same document ? A) Is this possible (im sure it is). B) HOW ??? Here is the menu we are trying to work with, although we have tried several others: http://www.pdgmedia.com/code/menus/h_...
  2. Mouseover Menu/Link
    Hi, what code can do this? There are is a row of a few main links, either text or an img Mouseover these links and a new set of links appears, underneath the main row. These new links are different for which main link I mouseover. All of the links, main or new, lead users ...
  3. menu
    I want to develop a drop down menu, Menu should work like this: When click the main menu item, it will drop down with its sub menus. (It is not mouseover drop down menu, the sub menu should stay there after click main menu), menu item can change color when mouseover. Can ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: ckosloskiPosted on 2003-07-01 at 13:19:07ID: 8835737

The reason the menu is in the incorrect place when you resize the window is because you have absolute positioning for your menu.

I went to the menu owners website and saw this example:
http://www.milonic.co.uk/menu/menusample.php?sampleid=21

I then was able to get your code to work by doing the following:

1.  Your menu_array.js needs to look like this:
/*
 Milonic DHTML Website Navigation Menu - Version 3.4
 Written by Andy Woolley - Copyright 2002 (c) Milonic Solutions Limited. All Rights Reserved.
 Please visit http://www.milonic.co.uk/menu or e-mail menu3@milonic.com for more information.

 The Free use of this menu is only available to Non-Profit, Educational & Personal web sites.
 Commercial and Corporate licenses  are available for use on all other web sites & Intranets.
 All Copyright notices MUST remain in place at ALL times and, please keep us informed of your
 intentions to use the menu and send us your URL.
*/


//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="<scr"+"ipt language=JavaScript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/scr"+"ipt>";_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);Alpha(style=0,opacity=100)"
}
else
{
    effect = "Shadow(color='#000000', Direction=135, Strength=0)" // 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=5;    // 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.
"999999",           // Mouse Off Font Color
"white",            // Mouse Off Background Color
"000000",           // Mouse On Font Color
"transparent",          // Mouse On Background Color
"transparent",          // Menu Border Color
11,             // Font Size in pixels
"normal",           // Font Style (italic or normal)
"bold",             // Font Weight (bold or normal)
"Verdana, Arial",   // Font Name
0,          // Menu Item Padding
"arrow.gif",        // Sub Menu Image (Leave this blank if not needed)
,           // 3D Border & Separator bar
,           // 3D High Color
,           // 3D Low Color
,           // Current Page Item Font Color (leave this blank to disable)
"800080",           // Current Page Item Background Color (leave this blank to disable)
,               // Top Bar image (Leave this blank to disable)
"transparent",          // Menu Header Font Color (Leave blank if headers are not needed)
"white",            // Menu Header Background Color (Leave blank if headers are not needed)
"transparent",          // Menu Item Separator Color
]


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
,             // Menu Top - The Top position of the menu in pixels
,             // Menu Left - The Left position of the menu in pixels
,                    // Menu Width - Menus width in pixels
0,                  // 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)
,           // Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,               // 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)
,                   // Background image for menu when BGColor set to transparent.
,                   // Scrollable Menu
,                   // Reserved for future use
,"<img src=images/home_btn_prospects.gif border=0>","show-menu=testing1",,"Animation",0

])
            addmenu(menu=["testing1",
        ,,,1,"",style1,,"center",effect,,,,,,,,,,,,
        ,"MS&nbsp;Program","http://www.socialwork.columbia.edu/",,"MS Program",1
                ,"PhD&nbsp;Program","http://www.columbia.edu/cu/ssw/phdprogram/",,"PhD Program",1
                ])



dumpmenus()


2.  Replace the first TD in your navigationtable in indexnew6.html as follows
  <table width="710" border="0" cellspacing="0" cellpadding="0" class="navigationtable">
  <tr>

  <td width="154" valign="top"><script language=JavaScript>PlaceMenu("mainmenu")</script></td>

 

by: lj8866Posted on 2003-07-02 at 06:57:23ID: 8840222

i've changed the contents of menu_array.js but it still doesnt load and it just shows a blank place where the menu should be.

 

by: ckosloskiPosted on 2003-07-02 at 07:10:35ID: 8840354

Did you do part two of my comments?

I pasted the whole menu_array.js file, did you copy and paste the whole thing?

What version of browser are you trying it on?  It is working for me fine in IE 5.5 and NN 4.7.  I did notice it is not working in NN 7.01.

I will have to get back to you on that one.  Or you could try updating your menu to the new version which is 3.5.15 and see if that fixes your problem.

 

by: ckosloskiPosted on 2003-07-02 at 08:07:57ID: 8840960

I just tested your old code on NN7.1 and it didn't work either.  I'm at a loss right now on how to make it work.

 

by: ckosloskiPosted on 2003-07-02 at 11:10:57ID: 8842661

One more thing.  I did notice that if I put text instead of a graphic it worked.

 

by: lj8866Posted on 2003-07-02 at 22:16:33ID: 8846382

I did exactly what your instructions say to do - the page is at the same address and you can even read the source code. The menu just doesnt show up.

I'm using IE 5 6 or 7.

 

by: ckosloskiPosted on 2003-07-03 at 05:29:14ID: 8848579

This line is not in your indexnew6
<td width="154" valign="top"><script language=JavaScript>PlaceMenu("mainmenu")</script></td>

It replaces  this line <td width="154"></td> which is the TD next to the first TD that has images/home_linkdivider.gif

 

by: ckosloskiPosted on 2003-07-03 at 06:11:15ID: 8848966

I just figured out how to make your code work in Netscape 7.  In the mmenu.js and news.js there is code that sets the window.onload and window.onresize.  You need to take out this code from both functions and combine the code into one function.

 

by: ckosloskiPosted on 2003-07-03 at 06:15:00ID: 8849005

I just figured out how to make your code work in Netscape 7.  In the mmenu.js and news.js there is code that sets the window.onload and window.onresize.  You need to take out this code from both functions and combine the code into one function.

 

by: lj8866Posted on 2003-07-03 at 07:40:52ID: 8849732

I fixed the menu sort of, but there is just one more small problem, it looks kinda weird in its positioning.

here is the link:

http://www.columbia.edu/cu/ssw/indexnew7.html

in IE it looks weird, in netscape and mozilla it looks fine. Any ideas?

 

by: lj8866Posted on 2003-07-03 at 07:47:26ID: 8849794

nice. i got it working now, thanks ckowsloski!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...