answersLogoWhite

0


Best Answer

That would be very complicated to write yourself. Use a prewritten script: http://www.Google.com/search?hl=en&lr=&q=javascript+dhtml+drop+down+menu 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){

$('#popMeDown').slideDown();

});

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

$('#popMeDown').slideUp();

});

It's super easy to create things like this with jQuery, check this out: http://docs.jquery.com/Events/bind

- Caleb Convina Web Design and Hosting

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago


...

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the code for mouseover menu in JavaScript?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a javascript tutorial?

A JavaScript tutorial contains instructions that will teach you how to code in JavaScript.


How do you enable javascript on your computer?

Javascript is a website feature. To turn it on, go into the "options" or "preferences" menu item of your web browser. Javascript controls will be found there.


Is jQuery a high level language?

jQuery is like an advanced JavaScript code. jQuery is a JavaScript code library that gives you more features with less code that what Javascript would require. If you understand JavaScript, jQuery wouldn't be much of a change.


How can you script your ASP code in JavaScript?

Start the document with: &lt;%@ language="javascript" %&gt;


How do you add a click event to a java button?

we can do this using of javascript. you can use this following code: &lt;input type=button value="button" onClick=onclick_function()&gt; here onclick_function() is a function which is called by javascript on clicking the button. javascript code is as follows: &lt;script language="javascript" type="text/javascript"&gt; // your code for onclick_function() function onclick_function(){ alert("Welcome to javascript"); } &lt;/script&gt;


How do you get the popup javascript box?

Use confirm or alert in javascript code to get a popup


What is the javascript code for gaiaonline?

javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0


What is the code for JavaScript?

JavaScript code looks like this:function sayhi(name) {alert("Hey there, "+name);}sayhi("joe");


Why is your javascript not working?

If there is no actual error in the code itself, most likely javascript is disabled in the browser.


How do you save javascript on Roblox?

It is not possible to save and execute Javascript code on Roblox. You can save Javascript code as plain text in script objects, but there is no way to execute the code. Roblox uses a scripting language called LUA in-game which is somewhat similar to JavaScript, but it is not identicle. You can learn about LUA syntax on the Roblox wiki.


Can you incorporate a javascript code into asp?

Yes


How reliable is JavaScript?

As reliable as the code writer.