473,385 Members | 1,329 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,385 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 2410
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"
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.