Forum Moderators: not2easy

Message Too Old, No Replies

access denied to csshover.htc

trying to get menu working in IE

         

SEO_Dummy

3:33 pm on Mar 23, 2007 (gmt 0)

10+ Year Member



I am trying to make a new site that looks a little more professional than my previous sites. I want to have a fancy horizontal popup navigation menu. I found a nice tutorial, created the html, and the css. And of course it didn't work in IE. Then I learned that I needed csshover.htc to fix it.
Now I am getting this error message:
Error: Access is denied to csshover.htc
But the URL in the error message is pointing to another file than this csshover.htc.

I guess it is all a little too complicated for me. But it was all ok, up to the point of getting the thing to work in IE. And now I am not sure how to use the htc file.

I have two hover commands in the menu. One for the colour, that is working fine now. And the other:
ul li:hover ul {display: block;}
is not working.

Any help would be great!

Angelis

3:49 pm on Mar 23, 2007 (gmt 0)

10+ Year Member



Shouldn't it be

ul, li:hover {display: block;}

SEO_Dummy

3:54 pm on Mar 23, 2007 (gmt 0)

10+ Year Member



It doesn't change a thing. And access is still denied.
I have found this error several times mentioned in different forums on the internet, but can't find the answer to the problem.

Angelis

4:03 pm on Mar 23, 2007 (gmt 0)

10+ Year Member



Use the absolute url to the htc file and not a relative one.

SEO_Dummy

4:14 pm on Mar 23, 2007 (gmt 0)

10+ Year Member



I'm still working on an offline version. Should I add "D: etc" for now and change it before uploading?

SEO_Dummy

4:18 pm on Mar 23, 2007 (gmt 0)

10+ Year Member



Thanks a lot! The error message is gone. I will fix the url before uploading, though.

Only the menu is still not popping up in IE. In other browsers it is ok.

Angelis

4:30 pm on Mar 23, 2007 (gmt 0)

10+ Year Member



Post all the CSS for the menu.

SuzyUK

10:35 am on Mar 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



some thoughts..

1. the csshover.htc should be called relative to the CSS file (like an image)
2. you can't link to someone elses (or your own) online version from an offline file (think some firewalls block it?)
3. have you got active scripting turned off in your IE? (menu still requires javascript on for it to work)
4. try this method [webmasterworld.com] as a inline/offline test to see if it's going to work for you, if it doesn't likely csshover.htc won't either because the either the code is wrong or your js is turned off.
5. posting your code as angelis says will help us check 4 with you

Suzy