Stupid frontpage question

K

krayten

Hi,

I'm trying to use a drop down box ( form ) to provide a list of hyperlinks
to
pages on my web. Without going into a lot of detail this is probably the
most elegant
way that I can think of doing what I need to do.

However, I'm having problems getting the selection to refer to a web page.

In short I want the presentation style of the links offered by the drop down
box but I
don't want the functionality of the form.

Please help...I'm getting really stuck with this!

Many thanks,

Krayten
 
P

p c

Here's an example of a drop down I use lot in HTML code. If you want o
use it, cut and paste the code to your page in HTML view. Change the
value fields in the OPTION tags to correspond to the file/page you want
to jump to, and the correspoinding label to what to want to display. The
index.html corresponds to the main page/menu. Delete those lines, if you
don't need them. And you will also need an image named go.gif as a
button. Yoi can find plety of those on the NET. To add more items to the
drop down, add more OPTION tags.

<script type="text/javascript" language="JavaScript">
<!--
function navHandler(list){
window.location.href = list
.options[list.selectedIndex].value; }
// -->
</script>

<form name="MainForm">
<select size=1 name="SeeAlsoSelect" onChange=navHandler(this); >

<option value="index.html">Go to.... </option>
<option value="index.html">Contents </option>
<option value="chap001.html">Chapter 1</option>
<option value="chap002.html">Chapter 2</option>
<option value="chap003.html">Chapter 3</option>

</select>

<a href="javascript:navHandler(document.MainForm.SeeAlsoSelect)"
border=0><img src="go.gif" border="0" height=22 width="20" value="Go"></a>

<!-- #End of Dropdown-->
</form>
 

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