Solved

Access denied to .htc file

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now