473,508 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

drop-down menus - lets discuss

KK
Drop-down menus are the hottest thing since Wonder Bread but . . .
1. Alot of people put them in the
they-look-nice-but-you-cant-code-them-right-so-they-always-look-messed-up
category (a la "frames"). Do you think this is true>
2. Some people think they take up too much KB.
3. Some people are worried that people who have javascript turned off
wont be able to see them. What percent of web users have javascrips
turned off? I thought it was around 12% but i could be wrong. If they
do have it turned off then it there an alternative? Could your script
detect javascript on/off before triggering the script?

P.S.
1. Is it possible to make the width of a box in a drop-down menu
variable (i.e. 20% of page width)
2. Anyone have a script for me to create a drop-down menu on my page?
www.homepokergames.com
Jul 20 '05 #1
3 2941
"KK" <ra************@aol.com> wrote in message
news:a5**************************@posting.google.c om...
Drop-down menus are the hottest thing since Wonder Bread
Really?
but . . . 1. Alot of people put them in the
they-look-nice-but-you-cant-code-them-right-so-they-always-look-
messed-up category (a la "frames"). Do you think this is true>
A lot of people may argue against drop down menus because _they_ can't
code them, that doesn't mean it cannot be done.
2. Some people think they take up too much KB.
There are certainly a lot of generic menu scripts around and the attempt
to be flexible and general does seem to result in unreasonably large JS
files to download. On the other hand I have seen perfectly functional,
but totally site-specific drop down menu code written in 40 lines of
JavaScript code and taking < 2k.
3. Some people are worried that people who have javascript
turned off wont be able to see them.
If site navigation becomes unavailable in the absence of JavaScript then
someone has made a serious mistake. For one thing there is no evidence
that any major search engine robots interpret JavaScript when indexing
pages, so they would also get the impression that the page contained no
navigation at all (making the site appear to consist of maybe only one
page).

There are a number of approaches that avoid the problem of risking the
site navigation being unavailable in the absence of JavaScript, of
which, defining the menu structure and contents in the HTML, often as
nested UL elements or DIVS and then using JavaScript to transform the
nature and position of those elements so that they will serve as menus
on browsers that support the functionality required, is a popular
option. As a strategy it has the advantages that the navigation is
always part of the page so it will be available if JavaScript is not,
and it gives the menu script the opportunity to determine whether the
browser actually supports the features required to produce a functional
menu, so it can just leave the navigation as normal HTML whenever a drop
down menu is not feasible.

However, when the navigation elements are in the HTML it becomes
necessary to use a menu script tailored to the page design, but the
result can be considerably smaller than generic menu scripts.
What percent of web users have javascrips turned
off? I thought it was around 12% but i could be wrong.
I have seen people quoting figures in the range 2% to 88% (but most
often 8-12%), and given that range I suspect that JavaScript use figures
are about as reliable as browser use figures. But it is more than none
and is likely to include (at least) two important groups of visitors,
search engine robots and some subsets of the disabled (for whom
accessibility legislation may apply).
If they do have it turned off then it there
an alternative? Could your script detect
javascript on/off before triggering the script?
With scripting disabled/unavailable there are no script based detecting
or triggering options. NOSCRIPT elements may apply (passively) but if
the navigation is defined in the HTML this just is not a problem.
P.S.
1. Is it possible to make the width of a box in a
drop-down menu variable (i.e. 20% of page width)

<snip>

Yes, but it would be more logical to use dimensions that were related to
the font size (such as em units).

Richard.
Jul 20 '05 #2
KK wrote:
Drop-down menus are the hottest thing since Wonder Bread but . . .
Not here they aren't. In most cases they don't rate all that highly on the
usability scale, and getting them to act in the same way as normal drop
down menus (where 'normal' is different depending on the platform) is at
least exceptionally difficult (and probably impossible).
1. Alot of people put them in the
they-look-nice-but-you-cant-code-them-right-so-they-always-look-messed-up
category (a la "frames"). Do you think this is true>
No
2. Some people think they take up too much KB.
Depends on the site. It shouldn't be too bad with mod_gzip.
3. Some people are worried that people who have javascript turned off
wont be able to see them.
Only if badly written. JavaScript shouldn't add content (at least not
essential content) to a page. It should manipulate existing HTML.
1. Is it possible to make the width of a box in a drop-down menu
variable (i.e. 20% of page width)


The CSS width property accepts percentages.

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #3
JRS: In article <bm*******************@news.demon.co.uk>, seen in
news:comp.lang.javascript, Richard Cornford
<Ri*****@litotes.demon.co.uk> posted at Thu, 16 Oct 2003 22:30:58 :-

If site navigation becomes unavailable in the absence of JavaScript then
someone has made a serious mistake. For one thing there is no evidence
that any major search engine robots interpret JavaScript when indexing
pages, so they would also get the impression that the page contained no
navigation at all (making the site appear to consist of maybe only one
page).


That (second sentence) is only necessarily so if all navigation becomes
unavailable.

Given a list such as produced in a DOS box by dir *.htm /b MiniTrue
can readily generate the core of a page linking to all those pages. as
long as that index page is findable, by a link from somewhere already
known findable, the whole site should be indexed.

On my site, index.htm links to toc.htm (intended for the framing), and
each of those link to "all" other pages; I should be able to remove
*all* other links internal to the site, and still get fully indexed.

The lack of proper navigation will indeed make use by those not using JS
difficult, but it need not inhibit search.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
I find MiniTrue useful for viewing/searching/altering files, at a DOS prompt;
free, DOS/Win/UNIX, <URL:http://www.idiotsdelight.net/minitrue/> Update soon?
Jul 20 '05 #4

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

Similar topics

1
4538
by: riehe | last post by:
Dear all I want to drop a node from a nodegroup. Can someone confirm if its enough to redistribute a node group with a partition map which doesn't include the node to be dropped? I can't see...
1
5779
by: Ian Dobson | last post by:
Hi, I need to drop a schema from a database but it has 400 tables in it. Is there an easy way to do it other than drop table schema1.table1 drop table schema1.table2 etc.. to 400 and then drop...
10
26041
by: BuddhaBuddy | last post by:
Platform is DB2/NT 7.2.9 The table was created like this: CREATE TABLE MYTEST ( MYTESTOID bigint not null primary key, FK_OTHEROID bigint not null references other, FK_ANOTHEROID bigint not...
0
2588
by: Lauren Quantrell | last post by:
I'm trying to drop a file from Windows Explorer (or desktop, etc.) onto a field in Access2K and capture the full file path. I found an posting below that says this is possible but I cannot...
6
3528
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product...
3
10561
by: VB Programmer | last post by:
In VB.NET 2005 (winform) any sample code to drag & drop items between 2 listboxes? Thanks!
1
4686
by: Darren | last post by:
I'm trying to create a file using drag and drop. I want to be able to select a listview item drag it to the shell and create a file. Each icon in the listview represents a blob in a database. When...
15
10772
by: uwcssa | last post by:
I try to drop a table as: I got: During SQL processing it returned: SQL0478N The object type "TABLE" cannot be dropped because there is an object "sch.SQL070515104729271", of type "FUNCTION",...
1
4782
by: Thi | last post by:
Hi, I am trying to develop an application that allows the users to drag a few file(s) from a zip archive to a destination. My question is, how do i determine where the drop destination is...
5
13728
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with...
0
7228
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
7128
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
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5635
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3206
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
426
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.