Solved

Access denied to .htc file

Posted on 2008-10-21
3
3,180 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
Comment Utility
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
Comment Utility
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
Comment Utility
not useful
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

744 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

18 Experts available now in Live!

Get 1:1 Help Now