J
John Cook
How would I go about setting up a drop down menu, like
those on the microsoft tool bars, that do not requirer a
go button?
those on the microsoft tool bars, that do not requirer a
go button?
disabilities that prevent them from using a-----Original Message-----
John it's easy to do.
However, when done without a Go button, people with
navigate will only be able to select the firstmouse, or people who prefer to use a key board to
item in the drop down.
If knowing this you still want to do it, here is an example.
<p align="center"><b>Select a Site or Function:
onChange="eval(setit.option
[setit.selectedIndex].value)"> said:<option value="">Select one</option>
<option value="javascript:window.open
('http://www.altavista.com')">AltaVista said:<option value="javascript:window.open
('http://www.yahoo.com')">Yahoo said:<option value="javascript:window.open
it will probably wrap when I post.('http://www.google.com')">Google said:</select>
Make sure the line with onChange is all on one line, as
John said:I believe i type it in correctly:
The onChange line is all on one line.
<p align="center"><r><font color="#800000">Select a
Trip:</font> </b><select id="setit"
onChange="eval(setit.option
[setit.selectedIndex].value)"></><option value="">Select
one</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook//SenionPage1.htm')">Sen
ior Home Page</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook//history.htm')">Our
History</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook/members.htm')">Member
Listing</option>
</select>
However I get:
ERROR: 'setit.option is null or not an object
Code: O
What did I do wrong?
disabilities that prevent them from using a-----Original Message-----
John it's easy to do.
However, when done without a Go button, people withnavigate will only be able to select the firstmouse, or people who prefer to use a key board toitem in the drop down.
If knowing this you still want to do it, here is an example.
<p align="center"><b>Select a Site or Function:onChange="eval(setit.option[setit.selectedIndex].value)"> said:<option value="">Select one</option>
<option value="javascript:window.open('http://www.altavista.com')">AltaVista said:<option value="javascript:window.open('http://www.yahoo.com')">Yahoo said:<option value="javascript:window.openit will probably wrap when I post.('http://www.google.com')">Google said:</select>
Make sure the line with onChange is all on one line, as--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
.
notepad to your page with the page in code-----Original Message-----
John. There were some tag errors.
Try this one with the Go button, it's better anyway.
Also, copy and paste from here to notepad, and then from
or html view.
<form>
<p align="center"><font color="#800000">Select a
Trip: said:<select id="setit"></p>
<option value="">Select one</option>
<option value="javascript:window.open ('http://home.houston.rr.com/wfcook/SeniorPage1.htm')">Seni
or
Home Page</option>
<option value="javascript:window.open ('http://home.houston.rr.com/wfcook/history.htm')">Our
History</option>
<option value="javascript:window.open ('http://home.houston.rr.com/wfcook/members.htm')">Member
Listing</option>
</select><input type="button" value="Go"
onclick="eval(setit.options
[setit.selectedIndex].value)"> said:--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
I believe i type it in correctly:
The onChange line is all on one line.
<p align="center"><r><font color="#800000">Select a
Trip:</font> </b><select id="setit"
onChange="eval(setit.option
[setit.selectedIndex].value)"></><option value="">Select
one</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook//SenionPage1.htm')">Sen
ior Home Page</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook//history.htm')">Our
History</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook/members.htm')">Member
Listing</option>
</select>
However I get:
ERROR: 'setit.option is null or not an object
Code: O
What did I do wrong?
disabilities that prevent them from using a-----Original Message-----
John it's easy to do.
However, when done without a Go button, people withnavigate will only be able to select the firstmouse, or people who prefer to use a key board toitem in the drop down.
If knowing this you still want to do it, here is an example.
<p align="center"><b>Select a Site or Function:onChange="eval(setit.option[setit.selectedIndex].value)"> said:<option value="">Select one</option>
<option value="javascript:window.open('http://www.altavista.com')">AltaVista said:<option value="javascript:window.open('http://www.yahoo.com')">Yahoo said:<option value="javascript:window.openit will probably wrap when I post.('http://www.google.com')">Google said:</select>
Make sure the line with onChange is all on one line, asrequirer--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
How would I go about setting up a drop down menu, like
those on the microsoft tool bars, that do not
ago button?
.
.
Steve Easton said:John. There were some tag errors.
Try this one with the Go button, it's better anyway.
Also, copy and paste from here to notepad, and then from notepad to your page with the page in code
or html view.
<form>
<p align="center"><font color="#800000">Select a Trip:</font>
<select id="setit"></p>
<option value="">Select one</option>
<option value="javascript:window.open('http://home.houston.rr.com/wfcook/SeniorPage1
..htm')">Senior
Home Page</option>
<option value="javascript:window.open('http://home.houston.rr.com/wfcook/history.htm
')">Ourvalue="javascript:window.open('http://home.houston.rr.com/wfcook/members.htmHistory</option>
<option
')">Member
Listing</option>
</select><input type="button" value="Go"
onclick="eval(setit.options[setit.selectedIndex].value)"></input></form>
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer
John said:I believe i type it in correctly:
The onChange line is all on one line.
<p align="center"><r><font color="#800000">Select a
Trip:</font> </b><select id="setit"
onChange="eval(setit.option
[setit.selectedIndex].value)"></><option value="">Select
one</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook//SenionPage1.htm')">Sen
ior Home Page</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook//history.htm')">Our
History</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook/members.htm')">Member
Listing</option>
</select>
However I get:
ERROR: 'setit.option is null or not an object
Code: O
What did I do wrong?
disabilities that prevent them from using a-----Original Message-----
John it's easy to do.
However, when done without a Go button, people withnavigate will only be able to select the firstmouse, or people who prefer to use a key board toitem in the drop down.
If knowing this you still want to do it, here is an example.
<p align="center"><b>Select a Site or Function:onChange="eval(setit.option[setit.selectedIndex].value)"> said:<option value="">Select one</option>
<option value="javascript:window.open('http://www.altavista.com')">AltaVista said:<option value="javascript:window.open('http://www.yahoo.com')">Yahoo said:<option value="javascript:window.openit will probably wrap when I post.('http://www.google.com')">Google said:</select>
Make sure the line with onChange is all on one line, as--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
How would I go about setting up a drop down menu, like
those on the microsoft tool bars, that do not requirer a
go button?
.
-----Original Message-----
Steve,
Thats going to fail on NN4 - we can't address a form element by ID. I'd do
it like this
With GO button
<form>
<select name="box">
<option value="">Choose</option>
<option value="http://www.ibm.com">IBM</option>
...etc
</select>
<input
onclick="if(this.form.box.selectedIndex>0) location.href=this.form.box.option
s[this.form.box.options.selectedIndex].value;" type="button" value="Go">
</form>
Without GO button
<form>
<select name="box"
onchange="if(this.options.selectedIndex>0) location.href=this.options[this.op
tions.selectedIndex].value">
<option value="">Choose</option>
<option value="http://www.ibm.com">IBM</option>
....etc
</select>
</form>
Cheers,
Jon
Microsoft MVP
from notepad to yourSteve Easton said:John. There were some tag errors.
Try this one with the Go button, it's better anyway.
Also, copy and paste from here to notepad, and then
page with the page in codeor html view.
<form>
<p align="center"><font color="#800000">Select a('http://home.houston.rr.com/wfcook/SeniorPage1Trip: said:<select id="setit"></p>
<option value="">Select one</option>
<option value="javascript:window.open('http://home.houston.rr.com/wfcook/history.htm..htm')">Senior
Home Page</option>
<option value="javascript:window.open('http://home.houston.rr.com/wfcook/members.htm')">Our
value="javascript:window.open')">Member
Listing</option>
</select><input type="button" value="Go"
onclick="eval(setit.options[setit.selectedIndex].value)"> said:--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer
I believe i type it in correctly:
The onChange line is all on one line.
<p align="center"><r><font color="#800000">Select a
Trip:</font> </b><select id="setit"
onChange="eval(setit.option
[setit.selectedIndex].value)"></><option value="">Select
one</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook//SenionPage1.htm')">Sen
ior Home Page</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook//history.htm')">Our
History</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook/members.htm')">Member
Listing</option>
</select>
However I get:
ERROR: 'setit.option is null or not an object
Code: O
What did I do wrong?
-----Original Message-----
John it's easy to do.
However, when done without a Go button, people with
disabilities that prevent them from using a
mouse, or people who prefer to use a key board to
navigate will only be able to select the first
item in the drop down.
If knowing this you still want to do it, here is an
example.
<p align="center"><b>Select a Site or Function:
</b><select id="setit"
onChange="eval(setit.option
[setit.selectedIndex].value)"></>
<option value="">Select one</option>
<option value="javascript:window.open
('http://www.altavista.com')">AltaVista</option>
<option value="javascript:window.open
('http://www.yahoo.com')">Yahoo</option>
<option value="javascript:window.open
('http://www.google.com')">Google</option>
</select>
Make sure the line with onChange is all on one line, as
it will probably wrap when I post.
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
in message
How would I go about setting up a drop down menu, like
those on the microsoft tool bars, that do not requirer
a
go button?
.
.
John said:Thank You Jon Spivey
Works Great!
Is there away to change the color of the box with the
arror in it from gray to something else?
I would prefer someting to tie in more with the theme.
Thanks Again.
-----Original Message-----
Steve,
Thats going to fail on NN4 - we can't address a form element by ID. I'd do
it like this
With GO button
<form>
<select name="box">
<option value="">Choose</option>
<option value="http://www.ibm.com">IBM</option>
...etc
</select>
<input
onclick="if(this.form.box.selectedIndex>0) location.href=this.form.box.option
s[this.form.box.options.selectedIndex].value;" type="button" value="Go">
</form>
Without GO button
<form>
<select name="box"
onchange="if(this.options.selectedIndex>0) location.href=this.options[this.op
tions.selectedIndex].value">
<option value="">Choose</option>
<option value="http://www.ibm.com">IBM</option>
....etc
</select>
</form>
Cheers,
Jon
Microsoft MVP
from notepad to yourSteve Easton said:John. There were some tag errors.
Try this one with the Go button, it's better anyway.
Also, copy and paste from here to notepad, and then
page with the page in codeor html view.
<form>
<p align="center"><font color="#800000">Select a('http://home.houston.rr.com/wfcook/SeniorPage1Trip: said:<select id="setit"></p>
<option value="">Select one</option>
<option value="javascript:window.open('http://home.houston.rr.com/wfcook/history.htm..htm')">Senior
Home Page</option>
<option value="javascript:window.open('http://home.houston.rr.com/wfcook/members.htm')">Our
value="javascript:window.open')">Member
Listing</option>
</select><input type="button" value="Go"
onclick="eval(setit.options[setit.selectedIndex].value)"> said:--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer
I believe i type it in correctly:
The onChange line is all on one line.
<p align="center"><r><font color="#800000">Select a
Trip:</font> </b><select id="setit"
onChange="eval(setit.option
[setit.selectedIndex].value)"></><option value="">Select
one</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook//SenionPage1.htm')">Sen
ior Home Page</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook//history.htm')">Our
History</option><option value="javascript:window.open
('http://home.houston.rr.com/wfcook/members.htm')">Member
Listing</option>
</select>
However I get:
ERROR: 'setit.option is null or not an object
Code: O
What did I do wrong?
-----Original Message-----
John it's easy to do.
However, when done without a Go button, people with
disabilities that prevent them from using a
mouse, or people who prefer to use a key board to
navigate will only be able to select the first
item in the drop down.
If knowing this you still want to do it, here is an
example.
<p align="center"><b>Select a Site or Function:
</b><select id="setit"
onChange="eval(setit.option
[setit.selectedIndex].value)"></>
<option value="">Select one</option>
<option value="javascript:window.open
('http://www.altavista.com')">AltaVista</option>
<option value="javascript:window.open
('http://www.yahoo.com')">Yahoo</option>
<option value="javascript:window.open
('http://www.google.com')">Google</option>
</select>
Make sure the line with onChange is all on one line, as
it will probably wrap when I post.
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
in message
How would I go about setting up a drop down menu, like
those on the microsoft tool bars, that do not requirer
a
go button?
.
.