Drop down box

F

FM

I have created a drop down box with 7 dates that show up when the box drops down.. I need to create a hyperlink between each date so that when the appropriate date is selected the viewer goes to the correct htm page. So far I have not been able to accomplish it. I also want to make sure that after a date is selected, and the viewer returns, that the date showing in the unopened box is the first date again:

First date: May 03, 1972 shows in box initially.
When box is opened the following dates show up:
May 03, 1972
May 05, 1976
May 07, 1988
May 13, 1996
May 18, 1977
May 25, 1939
May 25, 1988
When you highlight a date, the box closes and the selected date shows up.
When that happens I need the viewer to be transferred to that dates htm page.
Thanks for your help.
FM
 
T

thanks for the help mate

put the below in the <HEAD> part of your code.





<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function leapto(form) {
var myindex=form.dest.selectedIndex
parent.right_frame2.location.href=(form.dest.options[myindex].value);
// You can output to ANY frame using: parent.[framename].location.href
}
// End -->
</SCRIPT>





now the below should go into you <BODY> part of you code where you want the pull down to go.






<FORM NAME="myform">
<p>
<SELECT NAME="dest" SIZE=1 onChange="leapto(this.form)" style="font-size: 8pt">
<OPTION SELECTED VALUE="Select a date">Select a date
<OPTION VALUE="May031972.htm">May 03, 1972</option>
<option value="May051976.htm">May 05, 1976</option>
<OPTION VALUE="May071988.htm">May 07, 1988</option>
<option value="May131996.htm">May 13, 1996</option>
<option value="May181977.htm">May 18, 1977</option>
<OPTION VALUE="May251939.htm">May 25, 1939</option>
<OPTION VALUE="May251988.htm">May 25, 1988</option>
</SELECT></p>
</FORM>







this is the code needed to get the effect you want.

they select the date and it takes them to the correct .HTML files that is in the same folder as the HTML file that they are selecting a date from.

i.e. if you have the select.html in a folder called www.abc.co.uk/dates/select.html
this code would forward them to a file within the dates/ folder.

should the file be in another folder you will need to change the value="May031972.htm" to the full URL if the files they are forwarded to.

in the pages the they are forwarded to you should put a click here to return to previous page and set the hyperlink to the select.html file, or what ever the file is called.


regards

Jason






I have created a drop down box with 7 dates that show up when the box drops down.. I need to create a hyperlink between each date so that when the appropriate date is selected the viewer goes to the correct htm page. So far I have not been able to accomplish it. I also want to make sure that after a date is selected, and the viewer returns, that the date showing in the unopened box is the first date again:

First date: May 03, 1972 shows in box initially.
When box is opened the following dates show up:
May 03, 1972
May 05, 1976
May 07, 1988
May 13, 1996
May 18, 1977
May 25, 1939
May 25, 1988
When you highlight a date, the box closes and the selected date shows up.
When that happens I need the viewer to be transferred to that dates htm page.
Thanks for your help.
FM
 
F

FM

Dear Jason,

Thanks for the great try, but I just don't understand enough to get it to work. There's two much in the Head section (where to insert it and what portion needs to be identified with actual file names etc) that is beyond my current level of understanding. I think I did get a portion of the "Body" part but I had trouble deciding if all or some of the FP entry should be removed.

I'll just create some links to the correct htm pages.

Appreciate you help though.

FM.
"thanks for the help mate" <123> wrote in message put the below in the <HEAD> part of your code.





<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function leapto(form) {
var myindex=form.dest.selectedIndex
parent.right_frame2.location.href=(form.dest.options[myindex].value);
// You can output to ANY frame using: parent.[framename].location.href
}
// End -->
</SCRIPT>





now the below should go into you <BODY> part of you code where you want the pull down to go.






<FORM NAME="myform">
<p>
<SELECT NAME="dest" SIZE=1 onChange="leapto(this.form)" style="font-size: 8pt">
<OPTION SELECTED VALUE="Select a date">Select a date
<OPTION VALUE="May031972.htm">May 03, 1972</option>
<option value="May051976.htm">May 05, 1976</option>
<OPTION VALUE="May071988.htm">May 07, 1988</option>
<option value="May131996.htm">May 13, 1996</option>
<option value="May181977.htm">May 18, 1977</option>
<OPTION VALUE="May251939.htm">May 25, 1939</option>
<OPTION VALUE="May251988.htm">May 25, 1988</option>
</SELECT></p>
</FORM>







this is the code needed to get the effect you want.

they select the date and it takes them to the correct .HTML files that is in the same folder as the HTML file that they are selecting a date from.

i.e. if you have the select.html in a folder called www.abc.co.uk/dates/select.html
this code would forward them to a file within the dates/ folder.

should the file be in another folder you will need to change the value="May031972.htm" to the full URL if the files they are forwarded to.

in the pages the they are forwarded to you should put a click here to return to previous page and set the hyperlink to the select.html file, or what ever the file is called.


regards

Jason






I have created a drop down box with 7 dates that show up when the box drops down.. I need to create a hyperlink between each date so that when the appropriate date is selected the viewer goes to the correct htm page. So far I have not been able to accomplish it. I also want to make sure that after a date is selected, and the viewer returns, that the date showing in the unopened box is the first date again:

First date: May 03, 1972 shows in box initially.
When box is opened the following dates show up:
May 03, 1972
May 05, 1976
May 07, 1988
May 13, 1996
May 18, 1977
May 25, 1939
May 25, 1988
When you highlight a date, the box closes and the selected date shows up.
When that happens I need the viewer to be transferred to that dates htm page.
Thanks for your help.
FM
 
T

thanks for the help mate

I shall email you separately to obtain the files and I shall do the changes for you.
Dear Jason,

Thanks for the great try, but I just don't understand enough to get it to work. There's two much in the Head section (where to insert it and what portion needs to be identified with actual file names etc) that is beyond my current level of understanding. I think I did get a portion of the "Body" part but I had trouble deciding if all or some of the FP entry should be removed.

I'll just create some links to the correct htm pages.

Appreciate you help though.

FM.
"thanks for the help mate" <123> wrote in message put the below in the <HEAD> part of your code.





<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function leapto(form) {
var myindex=form.dest.selectedIndex
parent.right_frame2.location.href=(form.dest.options[myindex].value);
// You can output to ANY frame using: parent.[framename].location.href
}
// End -->
</SCRIPT>





now the below should go into you <BODY> part of you code where you want the pull down to go.






<FORM NAME="myform">
<p>
<SELECT NAME="dest" SIZE=1 onChange="leapto(this.form)" style="font-size: 8pt">
<OPTION SELECTED VALUE="Select a date">Select a date
<OPTION VALUE="May031972.htm">May 03, 1972</option>
<option value="May051976.htm">May 05, 1976</option>
<OPTION VALUE="May071988.htm">May 07, 1988</option>
<option value="May131996.htm">May 13, 1996</option>
<option value="May181977.htm">May 18, 1977</option>
<OPTION VALUE="May251939.htm">May 25, 1939</option>
<OPTION VALUE="May251988.htm">May 25, 1988</option>
</SELECT></p>
</FORM>







this is the code needed to get the effect you want.

they select the date and it takes them to the correct .HTML files that is in the same folder as the HTML file that they are selecting a date from.

i.e. if you have the select.html in a folder called www.abc.co.uk/dates/select.html
this code would forward them to a file within the dates/ folder.

should the file be in another folder you will need to change the value="May031972.htm" to the full URL if the files they are forwarded to.

in the pages the they are forwarded to you should put a click here to return to previous page and set the hyperlink to the select.html file, or what ever the file is called.


regards

Jason






I have created a drop down box with 7 dates that show up when the box drops down.. I need to create a hyperlink between each date so that when the appropriate date is selected the viewer goes to the correct htm page. So far I have not been able to accomplish it. I also want to make sure that after a date is selected, and the viewer returns, that the date showing in the unopened box is the first date again:

First date: May 03, 1972 shows in box initially.
When box is opened the following dates show up:
May 03, 1972
May 05, 1976
May 07, 1988
May 13, 1996
May 18, 1977
May 25, 1939
May 25, 1988
When you highlight a date, the box closes and the selected date shows up.
When that happens I need the viewer to be transferred to that dates htm page.
Thanks for your help.
FM
 
T

thanks for the help mate

email me at jasonc310771@ hotmail.com


take out the spaces from the above, this is to try and stop SPAM emails getting to me.

email me the website and I shall tell you how to get this to work.

Jason

"thanks for the help mate" <123> wrote in message I shall email you separately to obtain the files and I shall do the changes for you.
Dear Jason,

Thanks for the great try, but I just don't understand enough to get it to work. There's two much in the Head section (where to insert it and what portion needs to be identified with actual file names etc) that is beyond my current level of understanding. I think I did get a portion of the "Body" part but I had trouble deciding if all or some of the FP entry should be removed.

I'll just create some links to the correct htm pages.

Appreciate you help though.

FM.
"thanks for the help mate" <123> wrote in message put the below in the <HEAD> part of your code.





<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function leapto(form) {
var myindex=form.dest.selectedIndex
parent.right_frame2.location.href=(form.dest.options[myindex].value);
// You can output to ANY frame using: parent.[framename].location.href
}
// End -->
</SCRIPT>





now the below should go into you <BODY> part of you code where you want the pull down to go.






<FORM NAME="myform">
<p>
<SELECT NAME="dest" SIZE=1 onChange="leapto(this.form)" style="font-size: 8pt">
<OPTION SELECTED VALUE="Select a date">Select a date
<OPTION VALUE="May031972.htm">May 03, 1972</option>
<option value="May051976.htm">May 05, 1976</option>
<OPTION VALUE="May071988.htm">May 07, 1988</option>
<option value="May131996.htm">May 13, 1996</option>
<option value="May181977.htm">May 18, 1977</option>
<OPTION VALUE="May251939.htm">May 25, 1939</option>
<OPTION VALUE="May251988.htm">May 25, 1988</option>
</SELECT></p>
</FORM>







this is the code needed to get the effect you want.

they select the date and it takes them to the correct .HTML files that is in the same folder as the HTML file that they are selecting a date from.

i.e. if you have the select.html in a folder called www.abc.co.uk/dates/select.html
this code would forward them to a file within the dates/ folder.

should the file be in another folder you will need to change the value="May031972.htm" to the full URL if the files they are forwarded to.

in the pages the they are forwarded to you should put a click here to return to previous page and set the hyperlink to the select.html file, or what ever the file is called.


regards

Jason






I have created a drop down box with 7 dates that show up when the box drops down.. I need to create a hyperlink between each date so that when the appropriate date is selected the viewer goes to the correct htm page. So far I have not been able to accomplish it. I also want to make sure that after a date is selected, and the viewer returns, that the date showing in the unopened box is the first date again:

First date: May 03, 1972 shows in box initially.
When box is opened the following dates show up:
May 03, 1972
May 05, 1976
May 07, 1988
May 13, 1996
May 18, 1977
May 25, 1939
May 25, 1988
When you highlight a date, the box closes and the selected date shows up.
When that happens I need the viewer to be transferred to that dates htm page.
Thanks for your help.
FM
 

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