472,989 Members | 3,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,989 software developers and data experts.

How do you put hyperlinks in drop down lists

I have just purchased the Expression Web. I have put in a drop down list but can not seem to get hyperlinks associated with them. Here is what I have:
[html]
<p class="style1"><select name="Swim" style="width: 170px">
<option>SWIMMING_POOL</option>
<option>Metal_Coatings</option>
<a href="swimming_pool_products.htm#MAGICOTE_METAL">M etal Coatings</a>

break;
<option>Concrete_Pool_Coatings</option>

<option>Concrete_Stain</option>

<option>Floor_Paint</option>

<option>Concrete_Curing_Membrane</option>

<option>Concrete_Sealer</option>

<option>Non_Skid_Coating</option>

<option>Anti_Griffiti</option>
[/html]

I would appreciate some help. Thanks. JJ
Oct 16 '07 #1
2 1909
drhowarddrfine
7,435 Expert 4TB
Did Expressions generate that code or did you edit it? If so, I've lost all respect for that program.

There is no such thing as the "break;" in html. Also, <option> is part of the <select> element which is all contained in a <form> and you have neither of those.

You cannot insert a hyperlink into the text of an option.
Oct 16 '07 #2
enter the below script into you html body
[html]
<form name="mycombo">
<select name="example" size="1">
<option value="http://www.google.co.uk"> Google </option>
<option value="http://www.cnn.com"> CNN </option>
<option value="http://www.geocities.com"> Geocities </option>
</select>

<script language="javascript">
<!--
function go()
{
location=
document.mycombo.example.options[document.mycombo.example.selectedIndex].value
}
//-->
</script>
<a href="javascript:go()"><img src=" place your go img here " border=0></a>
</form>
[/html]
Oct 19 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Marlene harkcom | last post by:
I've got a datagrid with 5 bound columns in it as well as an edit/update/cancel column. I'm binding this to a dataset. One of the fields is always going to be one of three values. I want the...
1
by: Sam | last post by:
Hi, Do you know if it's possible to have a datagrid that contains drop-down lists ? Thx
1
by: accyboy1981 | last post by:
Hi, I new to C# so please forgive me if this is simple. I've got 2 drop down lists the first is hard coded with data where as the second is populated from a database. The options that appear in...
2
by: RAM | last post by:
I need to have two drop down lists in a edited row of a data list. One drop down list should contain Groups and the second one should contain Materials from *selected* group. Thus, I have written:...
4
by: Prof | last post by:
Hi, I have the requirement of autoupdating the drop down lists , when a selectin is done in another drop down box. I dont have a server through which i can make it dynamic. I have to hard code...
6
by: Rob Meade | last post by:
Hi all, Looking for a bit of help if possible. For about 2 weeks now I've been investigating the best way to populate related drop down menus, and have their values pre-populated again if the...
3
by: penny111 | last post by:
Hi there, For my application, i need to have 3 drop down lists 1. drop down list of folder names 2. drop down list of documents in the folder selected 3. drop down list of instances of the...
5
by: rodeoval | last post by:
I need to have three drop down lists, but the dependent should get the values from the database without refreshing the page..If knows,someone pls reply soon
2
by: coolsti | last post by:
I am not new to Javascript and have been working with it for years now. I have also written my own parent - child and parent - child - child drop down lists. But when I look at some web sites, I...
4
by: George Best | last post by:
Hi everyone, I am trying to make three dynamic drop down lists. When I say dynamic I mean when I choose a value from the first one, the second one changes options and when I choose a value from...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.