473,847 Members | 1,720 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 2966
"KK" <ra************ @aol.com> wrote in message
news:a5******** *************** ***@posting.goo gle.com...
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.de mon.co.uk>, seen in
news:comp.lang. javascript, Richard Cornford
<Ri*****@litote s.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.demo n.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.idiotsdelig ht.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
4570
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 any other way to drop node 3 from my setup of 5 nodes than to make a partmap file, DNODE_tmap, formatted so 1 2 4
1
5798
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 schema schema1? thanks
10
26149
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 null references another, FK_LASTLYOID bigint not null references lastly, unique (FK_OTHEROID,FK_ANOTHEROID))
0
2609
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 simutate it. Can anyone help? Thanks ************************** previous post: Message 1 in thread
6
3565
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 where the user can run on firefox/mozilla, what would be a good approach. 1. Should I overwrite the javascript code drag-and-drop to make it more browser independent. If I want to go this route, can anybody provide me a
3
10604
by: VB Programmer | last post by:
In VB.NET 2005 (winform) any sample code to drag & drop items between 2 listboxes? Thanks!
1
4718
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 I drop onto the shell I want a file created with a specified name containing the data from the database. I've looked at the FileDrop format but it look to have only the filename and not the data. TIA
15
10840
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", which depends on it. SQLSTATE=42893 Then I tried to do
1
4835
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 because i need to do some validation checking before extracting the files from the zip archive (e.g. validate archive password). Any help or some sample codes would be very much appreciated.
5
13827
by: Romulo NF | last post by:
Greetings, Im back here to show the new version of the drag & drop table columns (original script ). Ive found some issues with the old script, specially when trying to use 2 tables with drag&drop on the same page (which was not possible). Now ive a new concept of the script, more object oriented. Ive also commented the whole code so you guys can easier understand it engine. What exactly we need when trying to make a column drag &...
0
10982
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10645
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10335
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5719
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5909
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4116
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3160
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.