Search with a drop down menu

B

Brian

Hello FP Community,

would like to canvass this question and hopefully get the right advice &
direction!

I'd like to create a simple drop down menu (using surnames as the option)
hit submit and it takes me to a separate web-page for that surname.....

I don't want to add the traditional search web-bot component because in the
search text box it's for free-form text - I'd like to use the drop down menu
with surnames to choose.

I've managed to create the drop down menu using a form but I can only
navigate to just one web-page.

Hope you can help,

Thanks,

Brian
 
T

Trevor L.

Brian said:
Hello FP Community,

would like to canvass this question and hopefully get the right
advice & direction!

I'd like to create a simple drop down menu (using surnames as the
option) hit submit and it takes me to a separate web-page for that
surname.....

I don't want to add the traditional search web-bot component because
in the search text box it's for free-form text - I'd like to use the
drop down menu with surnames to choose.

I've managed to create the drop down menu using a form but I can only
navigate to just one web-page.

Hope you can help,

Thanks,

Brian

Hi Brian,
Do you mean a mouseover drop down, or a click to drop down ?

Here is an example from my site of the latter
<form action="">
<select onchange="if(options[selectedIndex].value)
top.location.href=(options[selectedIndex].value)"
size="1" style="background:#f5f5dc">
<option>---Select one---</option>
<option>-------------------------</option>
<option value="http://martinsbusphotos.fotopic.net/">
Martin's Photos</option>
<option>-------------------------</option>
<option value="http://www.users.bigpond.com/gdown/">
Graham's Site</option>
<option>-------------------------</option>
</select>
</form>

This gives the choice of two different websites, but can be as many as you
want - just add more options.
They don't have to separated by:
<option>-------------------------</option>
I just thought it looked nicer.

I now see you say web pages, not web sites so the values need to read
"page1.html" , "page2.html" , etc.
 
A

Andrew Murray

try this jump menu.

<form>
<select id="setit" style="color: #0000FF" size="1" name="test">

<option value="">Select one</option>
<option value="James.html">James</option>
<input type="button" value="Go"
onclick="window.open(setit.options[setit.selectedIndex].value)">
</form>
</p>

Add your pages/peoples names as you see fit. (eg.James.html above).
 
B

Brian

Andrew - that is brilliant - exactly what I wanted! I'd sort of got near the
code you've given by using the form wizard in the design view but couldn't
figure it out.

Many Thanks,

Brian

Andrew Murray said:
try this jump menu.

<form>
<select id="setit" style="color: #0000FF" size="1" name="test">

<option value="">Select one</option>
<option value="James.html">James</option>
<input type="button" value="Go"
onclick="window.open(setit.options[setit.selectedIndex].value)">
</form>
</p>

Add your pages/peoples names as you see fit. (eg.James.html above).


Brian said:
Hello FP Community,

would like to canvass this question and hopefully get the right advice &
direction!

I'd like to create a simple drop down menu (using surnames as the option)
hit submit and it takes me to a separate web-page for that surname.....

I don't want to add the traditional search web-bot component because in
the
search text box it's for free-form text - I'd like to use the drop down
menu
with surnames to choose.

I've managed to create the drop down menu using a form but I can only
navigate to just one web-page.

Hope you can help,

Thanks,

Brian
 
A

Andrew Murray

I think that code actually came from the dropdown menu behaviour in
Frontpage 2003.

Brian said:
Andrew - that is brilliant - exactly what I wanted! I'd sort of got near
the
code you've given by using the form wizard in the design view but couldn't
figure it out.

Many Thanks,

Brian

Andrew Murray said:
try this jump menu.

<form>
<select id="setit" style="color: #0000FF" size="1" name="test">

<option value="">Select one</option>
<option value="James.html">James</option>
<input type="button" value="Go"
onclick="window.open(setit.options[setit.selectedIndex].value)">
</form>
</p>

Add your pages/peoples names as you see fit. (eg.James.html above).


Brian said:
Hello FP Community,

would like to canvass this question and hopefully get the right advice
&
direction!

I'd like to create a simple drop down menu (using surnames as the
option)
hit submit and it takes me to a separate web-page for that surname.....

I don't want to add the traditional search web-bot component because in
the
search text box it's for free-form text - I'd like to use the drop down
menu
with surnames to choose.

I've managed to create the drop down menu using a form but I can only
navigate to just one web-page.

Hope you can help,

Thanks,

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top