image is not loading

Discussion in 'Software' started by Somemelvin1, May 19, 2009.

  1. Somemelvin1

    Somemelvin1 Private First Class

    Hi.
    I'm working on a webpage using Microsoft Publisher and HTML.
    I have several .gif files that I am attempting to display on a webpage.
    Two display without issue while the other three will not display.
    All are in the same directory. All were downloaded from same website to my computer. The only differences that I can see is size and 1 security item. The security item: The two .gif files that correctly display on my webpage contain an "unblock" button on the general tab of properties. The .gif files that won't display do not contain this "unblock" button.
    Any insight would be appreciated.
    Thanks.

    Here are the lines of code in case you need them:
    <p>
    <img src="c:\tbutton-r.gif">
    <p>
    <img src="c:\arrw05_46b.gif">
    <p>
    <img src="c:\micky.gif">
     
  2. MutD

    MutD Specialist

    Shot in the dark, try closing the img tags.

    So they are:
    Code:
    <img src="c:\micky.gif"/>
    instead of:
    Code:
    <img src="c:\micky.gif">
    If that doesnt work, please post your hmtl.
     
    Last edited: May 20, 2009
  3. Somemelvin1

    Somemelvin1 Private First Class

    I tried closing the img tag but it didn't display. I kept both lines in the code for you to see. There are 4 images in this example: tbutton-r, arrw05_46b, bluebeano, and go_next. All display but the third one: bluebeano. I have attached 2 files for you as well: arrw05_46b and bluebeano.

    This is the HTML code fragment inserted into my Microsoft Publisher page:
    <p>
    <img src="c:\dll docs\backup data\c_drive\$data\cobycom\buttons\tbutton-r.gif">
    <p>
    <img src="c:\dll docs\backup data\c_drive\$data\cobycom\buttons\arrw05_46b.gif">
    <p>
    <img src="c:\dll docs\backup data\c_drive\$data\cobycom\buttons\bluebeano.gif"/>
    <p>
    <img src="c:\dll docs\backup data\c_drive\$data\cobycom\buttons\bluebeano.gif">
    <p>
    <img src="c:\dll docs\backup data\c_drive\$data\cobycom\buttons\go_next.gif">


    Thanks for looking.
     

    Attached Files:

  4. MutD

    MutD Specialist

    Click Start and then run, copy the src of your blue beano into the dialog box:

    Code:
    c:\dll docs\backup data\c_drive\$data\cobycom\buttons\bluebeano.gif
    Does your image display?

    If it does, then please send me the source of your html. Open your page in an internet browser. Right click the page and select 'view source'. Save this and attach it next post.
     
  5. Somemelvin1

    Somemelvin1 Private First Class

    Yes, it the image did display when I executed the line in the Run box.
    Here is my code:
    <html xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
    xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
    xmlns="http://www.w3.org/TR/REC-html40">

    <head>
    <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    b\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]-->
    <title>Blank</title>
    <style>
    <!--
    /* Style Definitions */
    ol
    {margin-top:0in;
    margin-bottom:0in;
    margin-left:.25in;}
    ul
    {margin-top:0in;
    margin-bottom:0in;
    margin-left:.25in;}
    @page
    {size:8.5in 11.0in;}
    -->
    </style>
    </head>

    <body link=blue vlink=purple style='margin:0'>
    <!--[if gte mso 9]><xml>
    <v:background id="_x0000_s3073" o:bwmode="white" fillcolor="#ffc">
    <v:fill src="image360.jpg" o:title="Parchment" type="tile"/>
    </v:background></xml><![endif]-->

    <div style='position:absolute;width:7.9319in;height:6.3694in'>
    <!--[if gte vml 1]><![if mso]><v:rect id="_x0000_s1400" style='position:absolute;
    left:9pt;top:201pt;width:534pt;height:132pt;z-index:167' filled="f" stroked="f"
    insetpen="t" o:cliptowrap="t">
    <v:path insetpenok="f"/>
    <o:lock v:ext="edit" rotation="t"/>
    <o:webcomponent v:ext="edit" o:html="&lt;p&gt;
    &lt;img src=&quot;c:\dll docs\backup data\c_drive\$data\cobycom\buttons\tbutton-r.gif&quot;&gt;
    &lt;p&gt;
    &lt;img src=&quot;c:\dll docs\backup data\c_drive\$data\cobycom\buttons\arrw05_46b.gif&quot;&gt;
    &lt;p&gt;
    &lt;img src=&quot;c:\dll docs\backup data\c_drive\$data\cobycom\buttons\bluebeano.gif&quot;/&gt;
    &lt;p&gt;
    &lt;img src=&quot;c:\dll docs\backup data\c_drive\$data\cobycom\buttons\bluebeano.gif&quot;&gt;
    &lt;p&gt;
    &lt;img src=&quot;c:\dll docs\backup data\c_drive\$data\cobycom\buttons\go_next.gif&quot;&gt;

    "
    o:eek:n="t"/>
    </v:rect><![endif]><![endif]-->

    <div style='position:absolute;margin-left:12px;margin-top:268px;width:712px;
    height:176px;z-index:167'><p>
    <img src="c:\dll docs\backup data\c_drive\$data\cobycom\buttons\tbutton-r.gif">
    <p>
    <img src="c:\dll docs\backup data\c_drive\$data\cobycom\buttons\arrw05_46b.gif">
    <p>
    <img src="c:\dll docs\backup data\c_drive\$data\cobycom\buttons\bluebeano.gif"/>
    <p>
    <img src="c:\dll docs\backup data\c_drive\$data\cobycom\buttons\bluebeano.gif">
    <p>
    <img src="c:\dll docs\backup data\c_drive\$data\cobycom\buttons\go_next.gif">

    </div>


    </div>

    </body>

    </html>
     
  6. MutD

    MutD Specialist

    Hmm, what browser are you trying to view in?

    I really don't know why that image wouldn't be displaying. Do you realise that you have two img src trying to display the same bluebeano.gif?
    Code:
    <img src="c:\dll docs\backup data\c_drive\$data\cobycom\buttons\bluebeano.gif"/>
    <p>
    <img src="c:\dll docs\backup data\c_drive\$data\cobycom\buttons\bluebeano.gif"> 
    
    That shouldn't stop it from displaying though.
     
  7. Somemelvin1

    Somemelvin1 Private First Class

    Yes, I added a line trying to close the IMG tag per your suggestion. It didn't work.

    I'm using IE 7 with Microsoft Office Publisher 2003. I'm using the Microsoft Preview command to view the page.

    Could it have anything to do with the security item I mentioned in my original post?
     
  8. MutD

    MutD Specialist

    It could be, but I've never heard of anything like that so I just presumed it wasn't. I've done a quick Google on it and couldn't find anything.

    I have very little experience with publisher so I'm not sure why that might not be displaying the gif.

    Edit: I cant attach html files for some reason. Download the txt file I have uploaded, open it up then click File -> Save As and name it test.html

    When you have saved this, double click it and it should open Internet Explorer. Maybe it is just publisher being picky?
     

    Attached Files:

    Last edited: May 20, 2009
  9. Somemelvin1

    Somemelvin1 Private First Class

    The test file opened IE but it did not display anything. I have attached a screen print of what I saw.
     

    Attached Files:

  10. MutD

    MutD Specialist

    I honestly don't know why it's not displaying. I saved the image you attached and pointed the url to where I saved it in my test.html and it worked fine.
    I'm stumped.
    Any one else any ideas?
     
  11. PC-XT

    PC-XT Master Sergeant

    I've had similar problems before, where images would not always display. I solved them by opening the images in an editor and re-saving them. (At least this usually worked if the editor could open them.)
     
  12. Somemelvin1

    Somemelvin1 Private First Class

    I opened the graphic in both "Microsoft Office Picture Manager" and "Paint" and resaved under a different name as a .gif file. I also resaved (with "Paint") as a .png and .jpg file. I tested all files using first lower case and then trying upper case within my html code. no luck.
    Any other ideas?
     
  13. PC-XT

    PC-XT Master Sergeant

    Wow. Not sure if this will help, but I would try opening in one program, copying it to the other, and then saving it. Hopefully the clipboard would filter out whatever data is causing the problem. Are these the only pictures causing problems? Can you make new pictures with these programs that display correctly?
     
  14. Somemelvin1

    Somemelvin1 Private First Class

    I opened it in "Microsoft Office Picture Manager" and pasted it in "Paint." Still no luck. I renamed it and put in the C:\ and still no luck.
    Perhaps I'm expecting to much of the "Web Page Preview" within Publisher?
    I am using a simple HTML statement within an "HTML Code Fragment" and then using the "Web Page Preview" command to see what it would look like.
    Microsoft Office Publisher 2003 & IE7.
    I do not have my code on a server yet. Is the Publisher preview function limited?

    I am down to debugging one line:

    <img src="c:\bb1.gif">

    (bb1.gif is a rename of the blue ball file I attached in an early post.)
     
  15. Unbanable

    Unbanable Specialist

    You could try a different browser.

    I would try code outside of Publisher. Just make a simple html document and see if the image displays.

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>test</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    </head>
    <body>
    <img alt="test" src"c:\bb1.gif">
    </body>
    </html>

    Copy that into notepad or something, and go to file>save as. Make sure that it's saved as plain text/text document and then for the file name put test.html (make sure it doesn't have a .txt extention added to it) and save it to a directory you can find it in. Open that up in whatever browser.

    To be honest, I can't just sit down and go through that code and really understand it enough to troubleshoot it. Really, generated code like that isn't MEANT to be troubleshooted manually.

    My guess is that it's just some glitch pertaining to previewing it on your computer. I'd guess that if you published everything on a web server, it would probably work fine. I can't guarantee that obviously, just a guess.
     
  16. PC-XT

    PC-XT Master Sergeant

    I second Unbanable's post, and would add that to save an html file, many programs work best when you surround the name in quotes, like "test.html" to keep it from adding another extension. Hope it works.
     
  17. Somemelvin1

    Somemelvin1 Private First Class

    Unbanable,
    I believe you are right about the preview mode having a glitch.
    I was able to display all images when I "published to web" on my hard drive.
    Thanks to all for working through this one.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds