Yeah this is what I would do. Just make sure that the site is also
navigable via the top level navigation. Or make different styles for ie
with no js enabled.
Mike Pepper wrote:
Nope, nothing at all. Just bung it in an IE conditional clause calling a
stylesheet containing an HTC behaviour call.
Like : <!--[if IE]><link rel="stylesheet" href="css/cw_ie.css"
type="text/css" media="all" /><![endif]-->
with cs_ie.css containing whatever:
#menubar li {
behavior: url(css/iehover.htc);
}
and the HTC file:
<attach event="onmouseover" handler="mouseover" />
<attach event="onmouseout" handler="mouseout" />
<script type="text/javascript">
function mouseover() {
for( var x = 0; element.childNodes[x]; x++ ){
if(element.childNodes[x].tagName == 'UL') {
element.childNodes[x].style.display = 'block';
}
}
}
function mouseout() {
for( var x = 0; element.childNodes[x]; x++ ){
if(element.childNodes[x].tagName == 'UL') {
element.childNodes[x].style.display = 'none';
}
}
}
</script>
HTH,
Mike Pepper
Accessible Web Developer
Internet SEO and Marketing Analyst
[EMAIL PROTECTED]
http://www.visidigm.com
Administrator
Guild of Accessible Web Designers
[EMAIL PROTECTED]
http://www.gawds.org
Jixor wrote:
Is there anything wrong with using css and adding a js to 'enable'
:hover for everything in ie?
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************