TRENDING NEWS

POPULAR NEWS

Creating A Popup Menu With Javascript

How can I get the position of the cursor in JavaScript to make a custom right click menu?

Add an eventListener to the element you want to attach the menu to (please keep logic and markup separate and don’t “onclick” in the HTML).Then you won’t need the position of the cursor. E.g.document.getElementById("rightClickThing").addEventListener("click", showMenu);Where rightClickThing is the element where users will right-click and showMenu is the function you call to show the menu (naturally already loaded but hidden using CSS, so use appendClass in the function).Well, that’s how I’d do it, anyway. TMTOWTDI.

Creating a program that uses javascript. ?

how do you...write a program that asks the user to input a letter or number five seperate times. after each time a user enters a character, the program determines if the character was a letter or number and prints out a message on the page such as:
[character] is a number or [character] is a letter.
the [character] is replaced with the character entered. each output message needs to be displayed on its own line and the program must do this five times.

Need help with basic Javascript project completed by experienced programmer?

http://pastebin.com/tgdxnVLk

How to make dropdown menu using dreamweaver MX 2004?

(Assuming you are in the Design View:)

1) Insert and/or select a graphic or text block and add a link to it by putting a # symbol in the Link box in the Properties Panel.
2) Select the entire linked item (not just the text or graphic, but the anchor tag around it as well)... you can make sure you've got it by clicking on the tag in the Quick Tag List below the document window.
3) Go to your Tag Inspector Panel (if you don't see it open, hit the F9 key) and click on the Behaviors tab... this is where Dreamweaver stores its built-in javascript code.
3) Click on the + symbol, and find "Show Popup Menu" (Dreamweaver's dropdown menu behavior)... click it, and follow the directions in the wizard that opens up.

If you accidentally hit the enter key before you've finished making your selections, or if you want to edit an existing popup menu, just make sure you have the original anchor tag selected, and click on the "Show/Hide Popup Menu" link in the Behaviors panel.

P.S., if you have Fireworks 8, it also has the same behavior built in, but it does a nicer job because it'll let you use background graphics and CSS to generate your menues; Dreamweaver's is plain jane, not as clean looking, and pretty memory intensive :( Still, it does the job well if you don't go crazy and put too many items in your dropdowns!

Hope this helps!

Using a macro to reset a dropdown box value in Excel/VB?

I have numerous dropdown boxes in an Excel form that, when I "reset" the form using a macro, I want to also reset the dropdown value to the first value in the list. Can you help me with scripting this?

TRENDING NEWS