Seeking input and layout assistance (IE6, what else).
I am considering using a Son of Suckerfish dropmenu for one item in my
main nav bar.
It is accessible to screenreaders but how - if it's even possible –
can it be made keyboard accessible?
For example, tab to the item in the menu > hit another key(?) to open
the dropmenu > tab to chosen submenu item > hit enter.
http://htmldog.com/articles/suckerfish/dropdowns/
Or is it wiser to forget the dropmenu approach altogether and have an
intermediary page offering the submenu choices?
Here is the page in development. See under 'Services'
http://members.iinet.com.au/~generator/chem/index-new.php
I work on a Mac and everything looks and functions perfectly in 5
different browsers. A colleague with IE7 has reported same. However,
the layout is screwed in IE6:
http://members.iinet.com.au/~generator/chem/grab.jpg
Notice the dropmenu pushes content below it downwards and other menu
items to the right. There also appears to be a problem with outer
margins of the main content (which I do not see via browsershots.org).
I have included the relevant css and js (both external files) below.
Any assistance would be greatly appreciated.
TIA,
Henrik
-----------------------------------------
The menu is in a div with this css:
#menu {
height: 24px;
width: 840px;
margin-left: 30px;
border-bottom: solid #636467 1px;
float: left;
margin-bottom: 30px;
display: inline;
}
The other css for the menu is:
#nav, #nav ul {
list-style: none;
padding: 0;
margin: 0;
line-height: 1;
}
#nav a {
display: block;
color: #636467;
font-size: 1.2em;
padding-bottom: 8px;
}
#nav a:hover {
color: #E96D1F;
}
#nav li {
float: left;
margin-right: 24px;
}
#nav li ul {
position: absolute;
left: -999em;
background-image: url(images/drop-bg.png);
background-repeat: repeat;
width: 170px;
}
#nav li li a {
color: #FFFFFF;
display: block;
padding-left: 8px;
padding-top: 6px;
padding-bottom: -2px;
width: 162px;
}
#nav li:hover ul, #nav li.sfhover ul {
left: auto;
}
-------------------------------------
And the javascript:
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"),
"");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
--------------------------------------
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************