Simple HTML Drop Down Menu Generator

Description

  • The following wizard generates the code necessary for your own simple drop down menu. Each option on your menu will link to a selected page. Options are also given for you to select the colors and fonts.

Steps

  1. Fill in the information required for your drop down menu
  2. Generate the HTML and JavaScript code for your menu (button at bottom)
  3. You can preview your script (button at bottom)
  4. Copy and Paste the Source Code into your HTML page

Example

Note

  • If you choose Page changes when menu changes, no action can occur for the first Link Address
  • You can leave Link Address blank on the lines where you want the text entry to act as a divider or a menu header


When and how to change the page


Menu Properties
Menu Name:
(change menu name if multiple menus on one page)
Custom Target:
Target Name:
Dropdown Menu Entries
Text Shown Link Address



Custom Colors/Styles

(Check the above box to enable these Style Sheet options)
Text Color Background Color
[pick] [pick]
Font Family Custom Font

Font Style Font Size
pt



Source Code

Comments

Best bet would be put the entire thing inside a div tag with the necessary positioning CSS.

<div style="position:absolute; top:0px; left:5px">
drop down menu code
</div>

Ok, One of my text entries in the drop down list is long. The box then stretches too far to accommodate the text, even running off the edge of the screen! How do you make it so that the box is locked in a specific width and the text adjusts itself to form 2 lines? Shortening the title of my text is not an option for me, but breaking it into two lines is ok. Please, can you help?

There is no way to wrap it to use 2 lines. you can however force a certain width to the select box. The effect setting a width has is different depending on the browser. Add a style="width:200px;" property to the <select> tag like <select name="menu" style="width:200px;"> (will vary depending on which type of menu you are using)

I have created following drop down menu:

<form>
<p><select name="menu">
[snip]
</select> <input onclick="location=this.form.menu.options[this.form.menu.selectedIndex].value;" type="button" value="GO" /></p>
</form>

By pressing GO, after selecting a new city, frame open in a new window.
I want that data should be changed on the same frame.

Can you help me please.

The code you posted is fine and when I tested it locally, it didn't open in a new window. There must be something else on the page that conflicts with it and forces it to open in a new window. Providing the comment spam filters allow you to, can you post a link to the page where this is happening?

Well, what you have doesn't open in a new window. It opens the link in the current window (where you want it opening in the iframe). On your iframe, you need to add an id="" like:
<iframe src="[url]" frameborder=0 width=400 height=150 marginwidth=0 marginheight=0 scrolling="no" id="prayer_frame">
and change your go button to:
<input onclick="document.getElementById('prayer_frame').src=this.form.menu.options[this.form.menu.selectedIndex].value;" type="button" value="GO" />
That should give you want you want.

Generally you control where on the page the menu appears by inserting it in the appropriate place in the code. If you need it to come under the home, find where the home is in the code and insert the menu right after it.

You can align the menu to the right, left, center with code similar to

<div style="text-align:center;">
[original menu code]
</div>

Why is it that some are parts of the dropdown are able to work when other does not for me?

Do all the links you entered start with http:// and are all of them valid links? That would be the most common thing I would check.