Best Answer

That would be very complicated to write yourself. Use a prewritten script: But Javascript dropdown menus and flash menus are really annoying. They are inefficient. They won't work for users of text-only browsers, cell phone browsers, or aural browsers (text-to-speach browsers used by blind people). They aren't search engine friendly. They don't match standards for the GUI of the client's OS. Just don't use them. -DJ Craig Javascript is usually used with html(hyper-text markup lang.). type: onmouseover(:dropdown=true:)onmouseout(:dropdown=false:)

*** Another solution would to use a powerful javascript plugin called "jQuery". It's a free resource, and allows you to do incredible things with JavaScript with very little code or experiance. For instance, to create a simple dropdown menu, you would just give an element an ID that you want to use.. for instance <a id="menuPop" href="#">PopMeDown!</a>, with another hidden DIV that is position absolutle below the anchor that has an id like <div id="popMeDown" style="display: none;">Stuff In Menu Here</div>.

And then your jQuery would be this simple: $('#menuPop').bind('mouseenter', function(e){



$('#menuPop').bind('mouseleave', function(e){



It's super easy to create things like this with jQuery, check this out:

- Caleb Convina Web Design and Hosting

User Avatar

Wiki User

โˆ™ 2009-04-01 18:08:39
This answer is:
User Avatar
Study guides

What is HTML

How do you make homework fun

Why are car not made by order

Why is DNA of cats and dogs more similar than DNA of cats and hamsters

See all cards
No Reviews

Add your answer:

Earn +20 pts
Q: How do you create drop down menus with mouse events using JavaScript?
Write your answer...
Related questions

How do you create a web page that applies the invert filter to an image if the user moves the mouse over it?

For this you have to create JavaScript for the program. You have to apply the code in onHover attribute of image.

Why HTML cannot create dynamic output?

HTML cannot create dynamic output because there is no logic written into the language. To make any dynamic output, the page has to be able to make decisions of one kind or another. For instance "Did you user click on that button?" or "Is the user's mouse over the image?" The nature of HTML as a markup language means that it lacks these basic functions. Instead, a higher level language like Javascript is employed. Javascript has the ability to create if-the-else statements, for loops, and object oriented events. This means it can make those decisions, and act on them.

Assume you're using a three-button mousetoo access shortcuts menus you would?

To access shortcut menus with a three-button mouse click the right hand/secondary mouse button. The shortcut menu will show up on the screen once you do this.

What famous mouse did Walt Disney create?

Mickey Mouse (: also Minnie Mouse

Assume you are using a three button mouse To access shortcut menus you would?

click the right button

Why did Walt Disney Create Minnie Mouse?

To create a female counterpart to "Mickey Mouse", in other words, to create a female edition to "Mickey Mouse" which little girls could relate to, and therefore to create a wider audience to Disney.

What did doug engelbert create?

the mouse

Do all component generate Mouse Event?

do all components generate mouse events

What is the mousePressed function for?

It seems as though this is part of Java.Swing or JavaScript. In this case this method will be called when the mouse is initially clicked on the object.

Did Disney create Minnie Mouse?


How do you switch from external mouse to keyboard mouse?

I think on most computers you press the Alt key. This will allow you use the arrow keys to scroll and also sellect from drop down menus.

What made a computer easier to use?

The mouse, icons, drop-down menus. More user-friendly programs all around.

What is the term for a mouse scrolling onto an image and a caption box appearing over the picture and where can you find out how to do that?

You can do it using the onMouseOver event in javascript

Which JavaScript event is generated when the mouse pointer is positioned over either an image or any other object on the Web page?


Give the purpose of left and right mouse botton?

On a PCs and Linux the left mouse button is used for clicking, or selecting files ect. The right mouse button is used for opening up menus related to the item for help. There is no right mouse button on Macs, but only the left mouse button with the same functions.

Did Walt Disney create Minnie Mouse?


Where could one go to create and order a custom mouse pad?

There are a lot of places in order for one to go to create and order a custom mouse pad. However, one should check out the website vistaprint to create and order a csutom mouse pad.

Explain the mouse and keyboard events in VB?

VB stands for Virtual Basic, an event-based programming language that is also Microsoft's integrated development environment that was released in the early 1990s. Mouse events are what happen when you click mouse buttons, and keyboard events occur when you press keys on your keyboard.

Assume you're using a three-button mouse To access shortcut menus you would?

Normally you would click the right hand/secondary mouse button but you may configure any of the buttons to work within the Keyboard and Mouse section of System Preferences.

Assume you're using a three-button mouse. To access shortcut menus you would?

Normally you would click the right hand/secondary mouse button but you may configure any of the buttons to work within the Keyboard and Mouse section of System Preferences.

Did Henry Porter create Mickey Mouse?

No, Mickey Mouse was created by Walt Disney and Ub Iwerks.

Did bill gates create the mouse?

Douglas Endelbart invented the mouse in 1968 at the Stanford research institute.

Can you create formulas in Excel using the mouse?

Not entirely, but you can use a mouse to select ranges you include in a formula.

Which menus do the right mouse button reveal?

On Windows operating systems, the right mouse button (if you are left handed and have the mouse setup for left handed use, it would be the left mouse button) is used to display Context Menus. These menus contain shortcuts to various common commands. In a word processor, it may contains Cut/Copy/Paste commands. In a web browser, it may contain Back/Forward/Stop/Refresh commands. The commands contained within a Context Menu really isn't standard, although many programs that do the same thing as the other may have very similar menus. Its best to check the help documentation for more information. If you are running a version of Linux with a Desktop Manager, the same thing applies. It would all come down to what application you are running.

When did Walt Disney create Minnie Mouse?

Walt disney Created Minnie mouse on January 19 1942.