Solved

Access denied to .htc file

Posted on 2008-10-21
3
3,198 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
certificate error on website only in internal network 24 63
Link Anchor Not working 9 44
Hide and Unhide Table 6 24
SQL to JSON 14 30
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

685 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