
July 17th, 2000, 10:46 PM
|
|
Contributing User
|
|
Join Date: Jan 2000
Posts: 108
Time spent in forums: < 1 sec
Reputation Power: 9
|
|
freudianslip,
With a drop down (select) menu, each choice is allowed one value. This is a good place to keep the URLs to go to, while the menu choices are the titles of the sites. The way to change two locations (different frames) is to add multiple commands to the "onClick" option (of the submit button). However, there really isn't an easy way to store another URL for one choice, so I recommend that you create pages like "0.html", "1.html", etc., and link to them in the order they are listed. Here is an example:
<INPUT TYPE="BUTTON" VALUE="Go!" onClick="top.frames[0].location=frmLinks.selectLnk.options[frmLinks.selectLnk.options.selectedIndex].value; top.frames[1].location = (frmLinks.selectLnk.options.selectedIndex + 1) + '.html'">
The first link is to the value set in the SELECT statement; the second is to the value selected (if you selected the first selection, 1.html would be returned in the bottom frame.)
Good Luck!
yoshi
datera@datera.com http://www.datera.com
[This message has been edited by yoshi (edited July 17, 2000).]
|