Solved

Access denied to .htc file

Posted on 2008-10-21
3
3,193 Views
Last Modified: 2013-11-19
On the html file have css content as below:
<style type="text/css">


*{ margin:0; padding:0}
img, div { behavior: url("http://img.zing.vn/ms/landing_ob_ms/js/iepngfix.htc")}

body{ background:url(http://img.zing.vn/ms/landing_ob_ms/images/bg.gif) repeat-x #c4e65b; font-size:10px; line-height:16px; font-family:Tahoma}

#wrapper{ width:100%; position:absolute; height:600px;}

.box_flash{ width:1000px; background:url(http://img.zing.vn/ms/landing_ob_ms/images/bg_landing.png) no-repeat; height:600px; overflow:hidden; margin:auto;}

.flash{ width:760px; height:500px; margin:auto; overflow:hidden; margin-bottom:10px}

.footer{ width:700px; margin:auto; background:url(http://img.zing.vn/ms/landing_ob_ms/images/logo.png) no-repeat; overflow:hidden; margin-left:220px;}

.footer p{ padding:5px 0 5px 180px;}

.menu{ width:210px; overflow:hidden; height:34px; margin:0px; margin-left:420px; margin-bottom:10px; font-size:11px}
.menu_body{ width:173px; background:url(http://img.zing.vn/ms/landing_ob_ms/images/bt_menu_bg.png) repeat-x; float:left; height:34px; line-height:32px}

.left{ float:left}
.right{ float:right}
.clear{ clear:both}
a{ color:#000; text-decoration:none; font-weight:bold}
a:hover{ color:#c13e31; text-decoration:none; font-weight:bold}

</style>

When browse with IE6 or IE7 it happen error: Access denied to http://img.zing.vn/ms/landing_ob_ms/js/iepngfix.htc. Please help me.

Thanks and regards
0
Comment
Question by:VINAGAME_SD
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
RobPal earned 250 total points
ID: 22766840
Try changing your referencing code to

img, div { behavior:url(iepngfix.htc); }

or just take out the speech marks surrounding the url and add the semicolon ; at the end like the above example.

Let me know how you get on,

Rob
0
 

Author Comment

by:VINAGAME_SD
ID: 22774658
Because the htc file is put on the other server, so it can't use : img, div { behavior:url(iepngfix.htc); }
0
 

Author Closing Comment

by:VINAGAME_SD
ID: 31508188
not useful
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question