?
Solved

Access denied to .htc file

Posted on 2008-10-21
3
Medium Priority
?
3,215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
RobPal earned 500 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
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…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

800 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