|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 5
|
|
| Author |
|
|
Stranger Joined: Feb 12, 2007 Post Count: 3 Status: Offline |
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 |
||
|
|
Advanced Member UK Joined: Dec 29, 2004 Post Count: 1662 Status: Offline |
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 |
||
|
|
Stranger Joined: Feb 12, 2007 Post Count: 3 Status: Offline |
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 |
||
|
|
Advanced Member Joined: May 26, 2006 Post Count: 1757 Status: Offline |
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. |
||
|
|
Advanced Member Joined: Sep 3, 2005 Post Count: 2206 Status: Offline |
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 |
||
|
|
|
|
|
Current timezone is GMT Feb 9, 2010 12:20:08 PM |