Drop down menu List

  • Thread starter news-server.twcny.rr.com
  • Start date
N

news-server.twcny.rr.com

I am making a family web page, and I would like for it to have a drop down
menu from where you can choose different topics. I am using Microsoft
Publisher 2000 because I don't know HTML code. I believe I figured out how
to insert the topics to show up in the drop down list, but I can't figure
out how to link those topics to the files and pages I want. Can anyone help?
Any help would be greatly appreciated. Thanks in advance.
 
D

DavidF

Publisher doesn't directly support drop down menus, but you can use the
Insert HTML code Fragment feature to insert all kinds of scripts that will
probably do what you want to do. I would suggest that you Google "dhtml
drop-down menu", or just drop down menus and you will get links to all kinds
of free code that you can adapt to your use. One caveat is that not all will
work with Publisher, or with all browsers, so you might want to consider a
simple textual menu instead.

Here is just one example that uses JavaScript:

First Insert > HTML Code Fragment and then draw a box on your Pub document
where you want the menu to appear. You can drag it around and resize it
later however you want, but don't overlap any other elements on your page.
Then an HTML Code Fragment Properties box will pop up. Copy the code below
and use Ctrl + V to paste that code into that box > ok. Then use the Web
Page Preview to see the results.

copy all the code below this line and above final line
-------------------

<script language="JavaScript">
function goToPage(url)
{
if (url != "")
{
window.open(url);
}
}
</script>

<form name="dropdown">
<label>Search <u>E</u>ngines</label>
<select name="list" accesskey="E">
<option selected>Please select one</option>
<option value="http://search.msn.com/">MSN Search</option>
<option value="http://www.google.com/">Google</option>
<option value="http://www.search.com/">Search.com</option>
<option value="http://www.dogpile.com/">Dogpile</option>
</select>
<button onclick="goToPage(document.dropdown.list.options(
document.dropdown.list.selectedIndex).value)">Go</button>
</form>
 
G

Geoffrey

I assume that you are referring to a "List box".

Ok, you have figured out how to insert the topics. Good.

Now you must select the box and right-click it, then click on "List-box
properties". Next, click on the "modify" button and in the Data Processing
section remove the "Tick" on "Item value is the same as item text".

Then enter the link corresponding to the item in the window "Item value".

Repeat the operation for each topic.

Cheers
 
Top