• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

Wanted: Service Simple JavaScript navigation help needed

Status
Not open for further replies.
Joined
Sep 23, 2007
Posts
859
Reaction score
79
Can someone help me out with a simple bit of JavaScript? I'll give you £50!

I've created a 3-level navigation menu that uses onClick to open and close sections/subsections.

I got it working for the most part, but I'm not really into JavaScript so need a bit of help. In fact it may need to be re-written, but I don't forsee it taking too long if you know what you're doing.

Cheers,

Alex
 
You don't need to use Javascript for a multi tier navigation, you can do it all in CSS.

If you do use javascript you really should have a non-Javascript fallback anyway otherwise users without Javascript enabled and some mobile devices will not be able to navigate your site.
 
Thanks for the comments, messages and emails. I have received the finished script so don't need any more help right now.

You don't need to use Javascript for a multi tier navigation, you can do it all in CSS.

Normally I'd agree, but the requirements of this set by the client were quite specific, click action by JavaScript, no use of CSS3 and no hover effect. The button to initiate the open/close of the menu were also separate. We have a non JavaScript fallback, but given the intended use (not a usual site) I don't see any issues.

All sorted now anyway and my client is happy and therefore so am I :)
 
you can't do a multi tier menu using css for mobile devices, as you cannot hover on touch screen devices.
Who said anything about hovering?.....You can use mobile touch events to replicate click.

Also, if you provide both a web and mobile based environment, why not aim to keep functionality as consistent as possible across all devices for improved usability? Also, for those users with cognitive disabilities, a click action menu is actually more accessible than a hover based menu.
See Above

How many people have javascript disabled these days - excluding screen readers? Good luck trying to find statistics on that, seeing as most analytics software is javascript based...
Ha Ha clever, how the hell am I going to prove you wrong....mmmm;)

What mobile device(s) don't support javascript?
Developing countries still use pre-smart devices, old Nokia's, BlackBerry's....they don't support Javascript.
 
Status
Not open for further replies.
Top Bottom