473,387 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

pulldown menus

Hi Group...

I'm using this /old/ method of pulldown menus,
is there another (better) way of doing it? Something
that looks better.

<script language="JavaScript">
function fetch(){
var newtemp;
var tempurl;
var x=document.gotoForm.gotoMenu.selectedIndex;
newtemp=document.gotoForm.gotoMenu.options[x].value;
if (newtemp != null) {
location=newtemp;
}
document.gotoForm.gotoMenu.selectedIndex=0;
}
</script>

<form method="post" action="" name="gotoForm">
<select name="gotoMenu" onChange="fetch()">
<option selected>
Site Index&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</option>
<option value="&nbsp;">
&nbsp;
<option value="index.html">
Home &nbsp; &nbsp; &nbsp; &nbsp;
<option value="about.html">
About Us &nbsp; &nbsp; &nbsp; &nbsp;
<option value="designed_sites.html">
Client Websites &nbsp; &nbsp; &nbsp; &nbsp;
<option value="banners.html">
Banners &nbsp; &nbsp; &nbsp; &nbsp;
<option value="logo.html">
Logos &nbsp; &nbsp; &nbsp; &nbsp;
<option value="secure_pricing.html">
Contact Us &nbsp; &nbsp; &nbsp; &nbsp;
<option value="web_links.html">
Web Links &nbsp; &nbsp; &nbsp; &nbsp;
<option value="credits.html">
Credits &nbsp; &nbsp; &nbsp;
<option value="faq.html">
Frequently Asked Questions&nbsp; &nbsp; &nbsp; &nbsp;
</select>
</form>
Gufus

.... Opportunity always knocks at the least opportune moment.
Sep 8 '05 #1
3 2411
Gufus wrote:
Hi Group...

I'm using this /old/ method of pulldown menus,
is there another (better) way of doing it? Something
that looks better.


Yes, a better way is to provide plain old hyperlinks.

In particular *never* have an "onchange" event handler for a SELECT list
that navigates elsewhere. If you do, then a user who uses the keyboard
to tab over to the list and then expects to use the Up and Down keys to
find a destination of interest will instead find himself directed to
another page--most likely the wrong page--the very first time he presses
Up or Down.

Further, you didn't provide a form submission button, so you're
pointlessly preventing someone who doesn't have Javascript activated
from using your site.
Sep 8 '05 #2
Hi Harlan,

Thursday September 08 2005, Harlan Messinger writes to Gufus:
From: hm*******************@comcast.net
Yes, a better way is to provide plain old hyperlinks.
Ok.. but I still want to use pulldown menus on some
of my work. Can you help me out?

IE: Show me specific code, cgi, perl, HTML.. etc...
In particular *never* have an "onchange" event handler for a
SELECT list that navigates elsewhere. If you do, then a user
who uses the keyboard to tab over to the list and then
expects to use the Up and Down keys to find a destination of
interest will instead find himself directed to another
page--most likely the wrong page--the very first time he
presses Up or Down.
Okay...
Further, you didn't provide a form submission button, so
you're pointlessly preventing someone who doesn't have
Javascript activated from using your site.


Okay...

Gufus

mailto:in**@gypsy-designs.com
http://www.gypsy-designs.com

.... People will buy anything that's one to a customer.
Sep 9 '05 #3
NO**********@shaw.ca (Gufus) wrote:
I'm using this /old/ method of pulldown menus,
Now that you've resorted to multiposting I'll attempt to address the
issues. I didn't answer before because looking at your code my heart
sank into my shoes, you seem completely unaware of the fundamental
problems, so I didn't think you'd be willing to accept the solutions.
is there another (better) way of doing it?
Better certainly.
Something that looks better.
How it looks should be the last of your worries.
<script language="JavaScript">
Never rely on optional components such as client side scripting for
anything essential such as navigation. This is a link: <a
href="foo">foo</a>, these are a number of links:

<ul>
<li><a href="foo">foo</a></li>
<li><a href="foo">foo</a></li>
<li><a href="foo">foo</a></li>
<li><a href="foo">foo</a></li>
</ul>
<form method="post" action="" name="gotoForm">


Forms are for user input, not for navigation.

--
Spartanicus
Sep 9 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike | last post by:
Hello, I'm looking for an example of doing a page with pulldown menus, where the user selects a choice from the first pulldown, then based on that input, another appears, then the user selects...
9
by: flarkblark | last post by:
I recently had the displeasure of looking at the code required to implement the pop-up menus used in a pulldown menu system for a webpage. The sheer amount of Javascript required was amazing...
7
by: jhomp ssens | last post by:
I would like to create a pulldown menu which is semi-transparent....that is, you can see the text and graphics behind it when it is pulled down. The effect I'm looking for can be seen at...
5
by: Jerry | last post by:
Hello! I have an image that uses an image map for navigation. We would like a pull-down menu to appear when the user mouses over the link. The pull-down menu is another image that was created to...
1
by: Gufus | last post by:
Hi Spartanicus, Friday September 09 2005, Spartanicus writes to Gufus: > From: invalid@invalid.invalid > Now that you've resorted to multiposting I'll attempt to > address the issues. ...
4
by: Richard MSL | last post by:
I am making a combobox, where I add items to the combobox as they are required, as the user scrolls to the top or bottom of the list of items. It is a sorted combobox. Scrolling down works fine,...
2
by: Thrasher Remailer | last post by:
Using the example at http://www.w3schools.com/dhtml/tryit.asp?filename=trydhtml_menu10 as a base, how can I extend this code to handle tiered ( cascading ) pulldowns? For example, hovering...
1
by: leicklda | last post by:
Hi there, I'm very novice to web design. I'm trying to make a pulldown menu, but the formatting keeps getting screwed up when you roll the mouse over it. Please see www.boundarysys.com for...
20
by: Highlander | last post by:
Hello all. Consider the following HTA: <html> <head> <title>Date Pulldowns</title> <HTA:APPLICATION ID="HTAUI" APPLICATIONNAME="Date Pulldowns" SCROLL="no" SINGLEINSTANCE="yes"
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.