Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8084903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:56:13+00:00 2026-06-05T17:56:13+00:00

i have very serious problem if any tech expert can help…thank you in advance..

  • 0

i have very serious problem if any tech expert can help…thank you in advance..

i have below html file on which i dont have any control

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<a href="http://cafebar.ro/home.php" target=_blank><img class="photo" width="100%"     src="http://cityadvertisement.com/Photo-Gadgets/Sportsgirls/photo-102.jpg"></a>
</body>
</html>

now what i want to do is if the above image does’t found then it should display default image (i can not update above html file). but on server i can create e404.html page which will be displayed if image is not exist on server but when i run above html page it doesnt display anything… and On my yahoo hosting i dont have .htaccess

can anybody tell me how i can display default image on above html page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:56:14+00:00Added an answer on June 5, 2026 at 5:56 pm

    If you cannot change the HTML document, then you are out luck unless you can affect the server referred to in the src attribute, i.e. cityadvertisement.com. It is the response of that server that matters, not some error response of some other server to some other request.

    If you have access to that server, you should make it return some default image in response to the request for http://cityadvertisement.com/Photo-Gadgets/Sportsgirls/photo-102.jpg when a real image does not exist. Returning an HTML (error) document does not help, because the browsers expect an image and will discard an HTML document response when processing an img tag.

    I don’t quite understand why you say that you can “create e404.html page” but can’t use .htaccess. Does this mean that the server has fixed .htaccess that sets e404.html as error document for 404 errors? Then you’re stuck, I’m afraid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very serious problem with Visual Studio 2008. Occasionally when I right-click
I have very very big html page/data. I need to fetch data under h1
I have very strange problem while I am submitting a practice problem on codechef.
Actually I have a serious problem : I saw that somebody has accessed my
I have a serious problem with calculating Standard Deviation within subgroup in SSRS/SQl (whichever
I'm having a very serious problem. The application is live, but unfortunately it's fails
I have a serious problem: the ParameterList variable in my HQL has 10k+ elements,
My facing some serious problem.So I am explaining very specifically. Two view Controller A)
I have very simple piece of code. The goal is when i input four-digit
I have very simple OpenGL ES example similar to Hehe's example : http://nehe.gamedev.net/tutorial/ios_lesson_02__first_triangle/50001/ As

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.