Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

how do I make a drop down box with hyperlinks
 

Bob Mitchell




quote this post edit post

IP Loged report this post

Old Post  05-27-06 - 04:06 AM  
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</optio
n>
<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>


Post Follow-Up to this message ]
Re: how do I make a drop down box with hyperlinks
 

DavidF




quote this post edit post

IP Loged report this post

Old Post  05-27-06 - 11: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>




Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 06:05 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Microsoft Publisher archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top