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
...
A JavaScript tutorial contains instructions that will teach you how to code in JavaScript.
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.
Start the document with: <%@ language="javascript" %>
we can do this using of javascript. you can use this following code: <input type=button value="button" onClick=onclick_function()> here onclick_function() is a function which is called by javascript on clicking the button. javascript code is as follows: <script language="javascript" type="text/javascript"> // your code for onclick_function() function onclick_function(){ alert("Welcome to javascript"); } </script>
javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0
A JavaScript tutorial contains instructions that will teach you how to code in JavaScript.
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.
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.
Start the document with: <%@ language="javascript" %>
we can do this using of javascript. you can use this following code: <input type=button value="button" onClick=onclick_function()> here onclick_function() is a function which is called by javascript on clicking the button. javascript code is as follows: <script language="javascript" type="text/javascript"> // your code for onclick_function() function onclick_function(){ alert("Welcome to javascript"); } </script>
Use confirm or alert in javascript code to get a popup
javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0
JavaScript code looks like this:function sayhi(name) {alert("Hey there, "+name);}sayhi("joe");
If there is no actual error in the code itself, most likely javascript is disabled in the browser.
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.
Yes
As reliable as the code writer.