Jump to content

website development


Recommended Posts

Hi all,

I want to create a dropdownbox with 4 selections,

and I want to create hyperlink to each of those selections.

I know I can do this with this code:

-------------------------------------------------------

<form name="AutoListBox">

<p><select name="ListBoxURL" size="1" language="javascript" onchange="gotoLink(this.form);">

<option value="URL#1.htm">Place 1 </option>

<option value="URL #2.htm">Place 2 </option>

<option value="URL#3.htm">Place 3 </option>

<option selected> -- Select to Jump -- </option>

</select></p>

<script language="JavaScript">

<!--

function gotoLink(form) {

var OptionIndex=form.ListBoxURL.selectedIndex;

parent.location = form.ListBoxURL.options[OptionIndex].value;}

//-->

</script>

</form>

----------------------------------------------------------

But this will give the down arrow next to each selection.

Is there a way to create the same thing but without that small arrow?

Thanks.

Link to comment
Share on other sites


  • 2 months later...

U mean like this:

http://tornupletters.com/sars/test/test.php

Here's the script:

<form name="AutoListBox">

<p><select name="ListBoxURL" size="4" language="javascript" onchange="gotoLink(this.form);">

<option value="link1.html">Place 1 </option>

<option value="link2.html">Place 2 </option>

<option value="link3.html">Place 3 </option>

<option selected>Select a option to jump</option>

</select></p>

</form>

<script language="JavaScript">

<!--

function gotoLink(form) {

var OptionIndex=form.ListBoxURL.selectedIndex;

parent.location = form.ListBoxURL.options[OptionIndex].value;}

//-->

</script>

Grtz,

SaRs!

Edited by Sars!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...