This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft Publisher > May 2006 > how do I make a drop down box with hyperlinks





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how do I make a drop down box with hyperlinks
Bob Mitchell

2006-05-26, 11:06 pm

Below is a drop down menu that I can not get to work , Can anyone help
Thanks Bob mitchell, mitchell@getpage.com

<option value="*">Select a Province</option>
<option value="listing_guides/guides_alberta.htm">Alberta</option>
<option value="listing_guides/guides_britishcolumbia.htm">British
Columbia</option>
<option value="listing_guides/guides_manitoba.htm">Manitoba</option>
<option value="listing_guides/guides_new_brunswick.htm">New Brunswick</option>
<option value="listing_guides/guides_novia_scotia.htm">Novia Scotia</option>
<option value="listing_guides/guides_nwt.htm">N.W.T.</option>
<option value="listing_guides/guides_ontario.htm">Ontario</option>
<option value="listing_guides/guides_quebec.htm">Quebec</option>
<option value="listing_guides/guides_saskatchawan.htm">Saskatchewan</option>
<option value="listing_guides/guides_yukon.htm">Yukon</option>
<option value="listing_guides/guides_newfoundland.htm">New Foundland</option>
</select>
DavidF

2006-05-27, 6:44 pm

Bob,

It might be that each option value should contain a valid URL, including the
"http://" prefix. However, it looks like this code snippet is incomplete.
You might go back to where you got it and see what else you should be
including. For example try pasting the following code into your insert HTML
code fragment and previewing it:

--------

<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>

-----------

DavidF

"Bob Mitchell" <Bob Mitchell@discussions.microsoft.com> wrote in message
news:93046EF4-E7AB-4E18-B478-C52E47EAE60E@microsoft.com...
> Below is a drop down menu that I can not get to work , Can anyone help
> Thanks Bob mitchell, mitchell@getpage.com
>
> <option value="*">Select a Province</option>
> <option value="listing_guides/guides_alberta.htm">Alberta</option>
> <option value="listing_guides/guides_britishcolumbia.htm">British
> Columbia</option>
> <option value="listing_guides/guides_manitoba.htm">Manitoba</option>
> <option value="listing_guides/guides_new_brunswick.htm">New

Brunswick</option>
> <option value="listing_guides/guides_novia_scotia.htm">Novia

Scotia</option>
> <option value="listing_guides/guides_nwt.htm">N.W.T.</option>
> <option value="listing_guides/guides_ontario.htm">Ontario</option>
> <option value="listing_guides/guides_quebec.htm">Quebec</option>
> <option

value="listing_guides/guides_saskatchawan.htm">Saskatchewan</option>
> <option value="listing_guides/guides_yukon.htm">Yukon</option>
> <option value="listing_guides/guides_newfoundland.htm">New

Foundland</option>
> </select>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews