www.webdeveloper.com
Results 1 to 9 of 9

Thread: image showing up for some people but not others

  1. #1
    Join Date
    Jun 2006
    Location
    Under your bed
    Posts
    357

    image showing up for some people but not others

    I'm trying to help my friend with his site. We're having trouble getting the image bg.gif to display for some people. It won't show up when called from an HTML page via the img tag nor does it show up when you visit its URL directly (you are greeted by a blank page) however if you visit the image directory and download the file, you can view it from your computer.

    This is the direct link: http://www.omcowproductions.com/images/bg.gif

    and this is the image directory: http://www.omcowproductions.com/images/

    Any ideas?
    The better I get at programming, the more I appreciate arrays. Handy dandy things they are.

  2. #2
    Join Date
    Aug 2012
    Location
    Belgium
    Posts
    66

    Cool Where's the problem?

    I went to the link and found the image as it should be.

    <body>
    <img src="http://www.omcowproductions.com/images/bg.gif" alt="http://www.omcowproductions.com/images/bg.gif">
    </body>

  3. #3
    Join Date
    Jun 2006
    Location
    Under your bed
    Posts
    357
    It showed up also when you visited the URL directly?

    And I don't know, it shows up for some people, but not others. We go directly to the image URL for bg.gif and its just a blank page.
    The better I get at programming, the more I appreciate arrays. Handy dandy things they are.

  4. #4
    Join Date
    Aug 2012
    Location
    Belgium
    Posts
    66

    Talking

    in chrome, the picture does not show up, and i get this in the dom

    <img style="-webkit-user-select: none; cursor: -webkit-zoom-in; " src="http://www.omcowproductions.com/images/bg.gif" width="0" height="260">

    --> notice the width^^
    if i change the width in command line, your picture shows up

    in firefox, the picture shows up and i get the base code:

    <img src="http://www.omcowproductions.com/images/bg.gif" alt="http://www.omcowproductions.com/images/bg.gif">

  5. #5
    Join Date
    Dec 2011
    Location
    Centurion, South Africa
    Posts
    795
    The image dimensions are 1x600 pixels, and it seems like it's just a black line?

    If you're using it in a <img /> tag then it would just be a single line wherever that tag is. If you're using it as a background-image using css, then you should have it repeating. But since it's just a black image you might as well just use background-color: #000;
    JavaScript: Learn | Validate | Compact | bionoid

  6. #6
    Join Date
    Jun 2006
    Location
    Under your bed
    Posts
    357
    Gudlife: where are you finding the following source code: <img style="-webkit-user-select: none; cursor: -webkit-zoom-in; " src="http://www.omcowproductions.com/images/bg.gif" width="0" height="260"> is it when you go directly here? http://www.omcowproductions.com/images/bg.gif because when I go here there is no page source whatsoever (won't let me view source in Firefox or Chrome so this is why I assumed there wasn't any)

    Bionoid: Yes, it's just a long, thin, vertical line. The only reason I care about it is because I am perplexed by not being able to get it to load when I visit its URL directly (http://www.omcowproductions.com/images/bg.gif)
    The better I get at programming, the more I appreciate arrays. Handy dandy things they are.

  7. #7
    Join Date
    Dec 2011
    Location
    Centurion, South Africa
    Posts
    795
    You probably can see it directly, depending on the padding or background of the page showing it you may not have noticed.
    JavaScript: Learn | Validate | Compact | bionoid

  8. #8
    Join Date
    Jun 2006
    Location
    Under your bed
    Posts
    357
    Oh ok, I can see it now. I looked REALLY close at the far left side of the browser window.

    Thanks guys, now I know his site isn't possessed, haha xD I kid, I kid. But I am glad this is resolved.
    The better I get at programming, the more I appreciate arrays. Handy dandy things they are.

  9. #9
    Hey..!! thanks a lot guyzz..it helped me.. i was getting the same problem..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles