for pop up menus
I'm trying to avoid java
so i used pure css with divs only
div.menu div.list {display:none;}
div.menu:hover div.list { display:block;
background-color:#666666;}
Is there's a hack makes it work?
Thanks
| SitePoint Sponsor |
for pop up menus
I'm trying to avoid java
so i used pure css with divs only
div.menu div.list {display:none;}
div.menu:hover div.list { display:block;
background-color:#666666;}
Is there's a hack makes it work?
Thanks
IE6 and below only allow :hover to work on <a> so you'll need JavaScript (don't confuse it with Java as they're completely different).
Without having seen your code or what this is going to be used for, you could potentially apply this to a link and get around it that way in IE6 although you'll need to consider potential problems with accessibility as well as making sure that search engines can spider these links.
I use a code like the one here :
http://surguy.net/menu/index.html
if i assumed using (csshover.htc)
would the IE read the "display" property ?





google on son of suckerfish. That is widely used and works.
Dr John
www.kidneydialysis.org.uk


Actually in this case I'd use a .htc file instead of Suckerfish.
Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
SitePoint References: HTML CSS JavaScript | Become A Guru
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns
whatever:hover
Suckerfish :hover
From http://surguy.net/menu/highlightCurrent.js Someone is a bit confused:
// Setting class is needed for Mozilla compatibility - className appears to be correct
// according to the DOM spec
links[i].setAttribute("class", "current");
links[i].setAttribute("className", "current");
We miss you, Dan Schulz.
Learn CSS. | X/HTML Validator | CSS validator
Dynamic Site Solutions
Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.
Bookmarks