PC Review


Reply
Thread Tools Rating: Thread Rating: 49 votes, 4.88 average.

Creating hyperlinks associated to a drop down list

 
 
Alec Thorne
Guest
Posts: n/a
 
      3rd Jul 2003
Newcomer question, sorry..

I would like to create a drop down list within Frontpage 2000 that can
then link to different web pages - eg item1, item2 and item3 in the
drop down link to page1, page2 and page3.

Have ceated a drop down list within a form, but I cannot seem to find
where different hyperlinks can be associated with each menu item
(wasnīt sure if it could be done in a form anyway). Have also inserted
a drop down list outside of a form but again cannot find where a
specific item in the list can be associated with a hyperlink.

Am i missing something obvious here or canīt it be done this way. If
not any suggestions.

Many thanks

Alec
 
Reply With Quote
 
 
 
 
jon spivey
Guest
Posts: n/a
 
      3rd Jul 2003
Hi Alec,

Make your dropdown the way you want. I'm assuming the first option would be
something like "Choose A Link" then flip over to HTML view and amend your
select tag thus
<select
onchange="if(this.options.selectedIndex>0)location.href=this.options[this.op
tions.selectedIndex].value">
<option value="">Choose A Link</option>
<option value="http://www.microsoft.com">Microsoft</option>
etc......

Jon
Microsoft MVP - FP

"Alec Thorne" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Newcomer question, sorry..
>
> I would like to create a drop down list within Frontpage 2000 that can
> then link to different web pages - eg item1, item2 and item3 in the
> drop down link to page1, page2 and page3.
>
> Have ceated a drop down list within a form, but I cannot seem to find
> where different hyperlinks can be associated with each menu item
> (wasnīt sure if it could be done in a form anyway). Have also inserted
> a drop down list outside of a form but again cannot find where a
> specific item in the list can be associated with a hyperlink.
>
> Am i missing something obvious here or canīt it be done this way. If
> not any suggestions.
>
> Many thanks
>
> Alec



 
Reply With Quote
 
Alec Thorne
Guest
Posts: n/a
 
      4th Jul 2003
Thanks Jon, will try that one today.

Best Regards

Alec
 
Reply With Quote
 
Alec Thorne
Guest
Posts: n/a
 
      4th Jul 2003
Jon

Have tried as you suggested with a simple drop down within a normal
table. The code is as follows.

<body>

<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="200"
height="200">
<tr>
<td>
<p align="center"><select size="1" name="Products">
<option value="">Please Select a Product</option>
<option value="http://www.page1.htm">Design
Software</option>
<option value="http://www.page2.htm">Manufacturing
Software</option>
<option value="http://www.page3.htm">Machine Tools</option>
</select></td>
</tr>
</table>
</center>
</div>

</body>

Where do I insert the line

<select onchange="if(this.options.selectedIndex>0)location.href=this.options[this.options.selectedIndex].value">

Have tried inserting this before the line

<option value="">Please Select a Product</option>

....but get an error Expected "]".

I think I should start brushing up on my HTML code..

Thanks again
Alec
 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      7th Jul 2003
Modify
<select size="1" name="Products">
To be
<select size="1" name="Products"
onchange="if(this.options.selectedIndex>0) location.href=this.options [this.options.selectedIndex].value">

--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"Alec Thorne" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
| Jon
|
| Have tried as you suggested with a simple drop down within a normal
| table. The code is as follows.
|
| <body>
|
| <div align="center">
| <center>
| <table border="0" cellpadding="0" cellspacing="0" width="200"
| height="200">
| <tr>
| <td>
| <p align="center"><select size="1" name="Products">
| <option value="">Please Select a Product</option>
| <option value="http://www.page1.htm">Design
| Software</option>
| <option value="http://www.page2.htm">Manufacturing
| Software</option>
| <option value="http://www.page3.htm">Machine Tools</option>
| </select></td>
| </tr>
| </table>
| </center>
| </div>
|
| </body>
|
| Where do I insert the line
|
| <select onchange="if(this.options.selectedIndex>0)location.href=this.options[this.options.selectedIndex].value">
|
| Have tried inserting this before the line
|
| <option value="">Please Select a Product</option>
|
| ...but get an error Expected "]".
|
| I think I should start brushing up on my HTML code..
|
| Thanks again
| Alec


 
Reply With Quote
 
Alec Thorne
Guest
Posts: n/a
 
      8th Jul 2003
Stefan

Have tried that and it works a treat.. Many thanks

Alec
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a Drop Down List with Hyperlinks as List Items in ASP.NET Tony Tone Microsoft ASP .NET 2 28th Apr 2006 08:33 PM
How do I create a Drop Down List with Hyperlinks as List Items in ASP.NET Tony Tone Microsoft ASP .NET 0 28th Apr 2006 07:38 PM
Drop down list with hyperlinks... jtho13 Microsoft Excel Misc 1 29th Jan 2006 07:20 AM
Creating hyperlinks from drop down selections =?Utf-8?B?Um9i?= Microsoft Frontpage 3 16th Jun 2004 05:42 AM
Hyperlinks in drop-down list cdb Microsoft Excel Programming 1 4th Apr 2004 04:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:54 PM.