Thursday 22 September 2005 11:51:45 am
I didn't want to use suckerfish because I don't like the javascript solution. My solution using whatever:hover is better because you can serve pure css2 to standard compliant browsers, and you feed _just_ IE with a nice .htc that makes him aware of what :hover means.
Anyways I've been able to solve this today. I installed HTTPWatch for IE, a program which shows you every header, mime type and techy details for the page you're loading. In this way I discovered that:
1. csshover.htc was still being served as text/html, and since XP SP2, internet explorer refuses to load htc files with the wrong mime type. 2. passing through ez engine IE was taking the wrong path for csshover.htc So my solution was to add the correct path in my body section (of the IE's specific css):
body {
behavior: url(/design/sitename/stylesheets/csshover.htc);
}
after this I had to properly configure apache so that it took the correct mime time for the htc extension. To do this I had to add the following line in httpd.conf (near other similar lines)
AddType text/x-component .htc
Now it should be ok, but just for safety I added the same line in /etc/mime.types.
That's all! Max PS: by the way, to make the whole thing working you have to add the htc extension in the rewrite rule exceptions, otherwise ez will process the file instead of letting apache serve it.
|