Killersites.com Homepage Welcome Guest   |   Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help



Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 5
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 5105 times and has 4 replies Next Thread
Male irisz
Stranger




Joined: Feb 12, 2007
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
love struck Help needed! Pull-down menu written in Javascript not working in Firefox, but working fine in IE

Could someone help me with this Javascript problem? The clicked to pull-down menu, written in Javascript not working in Firefox, but working fine in IE. It's a 3-level drop-down menu. The code such as

{document.all.topTreeTable.cells[2*i+1].innerHTML } can not pass through Firefox parser.

Anyone knows a solution? Thanks aheaad!

Iris

[Feb 12, 2007 12:38:48 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male tpattison
Advanced Member
Member's Avatar

UK
Joined: Dec 29, 2004
Post Count: 1662
Status: Offline
Reply to this Post  Reply with Quote 
Re: Help needed! Pull-down menu written in Javascript not working in Firefox, but working fine in IE

Hi

Not much to go on, but the code sample looks over the top for drop downs.

Have a search for accessible, CSS drop down menus. Here's a few good ones:

Son of Suckerfish Dropdowns
Chrome CSS Drop Down Menu
Drop-Down Menus, Horizontal Style
----------------------------------------
Pavonis Mons | Listen of the week: "Residue of Desire" by Acumen
[Feb 12, 2007 1:36:42 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male irisz
Stranger




Joined: Feb 12, 2007
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: Help needed! Pull-down menu written in Javascript not working in Firefox, but working fine in IE

Thanks! But I still like the effect of current menu. The only problem is it does not work in Firefox. I don't know why...

Iris
[Feb 12, 2007 3:12:03 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male cboudy
Advanced Member
Member's Avatar


Joined: May 26, 2006
Post Count: 1757
Status: Offline
Reply to this Post  Reply with Quote 
Re: Help needed! Pull-down menu written in Javascript not working in Firefox, but working fine in IE

Thanks! But I still like the effect of current menu. The only problem is it does not work in Firefox. I don't know why...


This is why Tim pointed you in the direction of CSS based menus . You could probably get the same effect that you are trying to accomplish with your JavaScript.

Your visitors won't be able to see your effect if JS is turned off on their browser. It's inaccessible and as you see, it will mess up in some browsers. Also it's just not something we promote around here.
[Feb 12, 2007 3:34:46 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male billyboy
Advanced Member
Member's Avatar


Joined: Sep 3, 2005
Post Count: 2206
Status: Offline
Reply to this Post  Reply with Quote 
Re: Help needed! Pull-down menu written in Javascript not working in Firefox, but working fine in IE

The only problem is it does not work in Firefox


No. There's numerous problems:

You're relying on javascript to insert important content with innerHTML.

No dropdown menu will function in IE without javascript support.

Even if you rewrote the code so it wasn't IE specific your site is useless without javascript available.

Even so called 'accessible' dropdown menus like Suckerfish don't function via keyboard navigation. They're useless to users that can't or choose not to use a mouse.

Dropdown menus fall under the category of 'mystery meat navigation' (Guess if where the links are, can you find them?) Why hide links that would be better off in plain site.

Depending on the method used to hide links screen readers will never see them.

For the sake of 'a cool effect' you're rendering your site unusable to a large percentage of visitors.
----------------------------------------
Quiquid latine dictum sit altum viditur
[Feb 12, 2007 10:21:05 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread