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

Home Posts Topics Members FAQ

Menu's for Web Sites

Hello,

I want to design some menus for websites with submenus. I'd like to learn
the code myself and I was wondering a good place to pick up on some tips on
how to design them.

Also, is there a decent program out there that does it all for you at a good
price?

Thanks,
Brian
Jul 23 '05 #1
2 1331
Brian wrote:
I want to design some menus for websites with submenus. I'd like to
learn the code myself and I was wondering a good place to pick
up on some tips on how to design them.
The FAQ for this newsgroup lists many resources related to javascript
and browsers scripting, some of which include advice on script design.
But for specific advice it would be a good idea to state where you are
starting from. If you have never created DHTML scripts then a menu
system would be an ambitious place to start (though not necessarily a
bad target for a beginner).

One of the biggest design issues relating to browser scripting in
general, and menus in particular, is what happens when the script fails.
Because fail they will.

If site navigation hangs on the functionality of an actively scripted
menu and that script fails then the consequences are disastrous. The
potential to navigate the web site is removed and visitors finding
themselves in that position will see little choice but go elsewhere.
(Coincidentally, search engine robots don't tend to execute javascript
so their perception may also be that there is nowhere beyond the
homepage to navigate to. A conclusion that tends not to result in an
accurate search engine ranking for the site)

Mostly when a menu system is designed in such a way as to render
navigation dependent on successful execution of a script that dependency
follows directly from the location of the data that defines the menu
contents. A common (and unwise) design pattern would define the data
(mostly URLs, link text and menu structure information) in javascript
structures of various sorts. So when the script fails the data becomes
inaccessible, and there is no hope of using it for navigation.

Another approach to menu design would define the data in the HTML. A
nested structure of UL elements containing links is quite well suited to
describing a menu structure. The URLs and accompanying text are
obviously defined by the links (that is pretty much all that a link is)
while the nested UL elements lend themselves to describing the sort of
hierarchical relationship that defines a menu (its submenus, and even
their sub menus).

The script would then act by manipulating the elements defined in the
HTML. Changing their display properties, moving/positioning them, adding
event handlers to achieve the required interaction and so on.

Given a suitable browser (that's any modern dynamic visual browser) a
menu based on the manipulation of HTML can be indistinguishable from a
menu for which the data was defined in javascript structures. The big
difference is in how they fail. The design based on the manipulation of
HTML will tend to fail leaving the nested ULs of links in the HTML page,
where they remain available as a means of navigation. So that is a DHTML
menu for everyone who can take advantage of it, and a viable alternative
for anyone who cannot.

So I would recommend that if you want to peruse techniques that can be
employed in a DHTML menu, you should be looking into how you go about
manipulating HTML content in a web browser with scripts.

Other design issues include usability and accessibility.
Also, is there a decent program out there that does it all for
you at a good price?


"decent program" and "good price" are very subjective criteria. If
"decent program" is judged on the quality of menu code created (rather
than, say, the quality of the GUI) then you probably will not find one.

Richard.
Jul 23 '05 #2

"Brian" <br*************@NOyahoo.com> wrote in message
news:2i************@uni-berlin.de...
Hello,

I want to design some menus for websites with submenus. I'd like to learn
the code myself and I was wondering a good place to pick up on some tips on how to design them.

Also, is there a decent program out there that does it all for you at a good price?

Thanks,
Brian

DHTML menu
Jul 23 '05 #3

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

Similar topics

4
3816
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
22
11058
by: Marek Mand | last post by:
How to create a functional *flexible* UL-menu list <div> <ul> <li><a href=""></li> <li><a href=""></li> <li><a href=""></li> </ul> </div> (working in IE, Mozilla1.6, Opera7 (or maybe even...
4
5749
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
18
3515
by: Andromeda | last post by:
I've been trying to add a tree menu to my website with some luck (more or less). I came across a script on simplythebest.net, but I seem to be having a problem with it... and since they have no...
10
3082
by: H.S. | last post by:
Hi, Let me begin by saying that I am not an HTML expert. The most experience I have for HTML authoring is when I made my webpages in my grad studies at my university and some on my home computer...
5
5833
by: Jonathan | last post by:
Hello All, I am in the process of creating a 2/3 level collapsible/exspanible menu (called "nav") where users can click on a category and have the submenus appear beneath it and so on (allow...
2
2841
by: millertime90 | last post by:
Hi basically my problem is I have 2 drop down menus populated by my database the first populated by a field in the database and the 2nd populated with a relation to the value selected in the first...
19
3647
by: Jim | last post by:
Hi, I have two questions/problems pertaining to CSS horizontal dropdown menus and am hoping that someone here can help me out. (1) I'm having a problem centering the menu. I picked up the...
3
7376
by: tceramesh | last post by:
Hi Friends, I Created one drop down menu by using CSS. It is perfect in Firefox but in IE it creates some problem. in the header section the drop down menu appear,, below that...
0
7223
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
7115
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
7321
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,...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7489
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
5624
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,...
0
4705
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...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
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.