dcsimg
www.webdeveloper.com
Results 1 to 7 of 7

Thread: Put same code in as editor did, still no image.

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Posts
    110

    Put same code in as editor did, still no image.

    Hi, I put image in with editor, a new editor, cupcake now, then I looked at the code, then deleted image and put the same code in, but it wont display still. What could be the problem as it is not the web editors as this is the second editor Im trying this with now.
    Here is the code that the editor put in when I put the image in manually, then I deleted the image and tried putting it in with exact same code as editor had done. Still no result. code is<img src="file://c:/users/spencer/Desktop/Mywebsites/model2.png.jpg" width="100" height="100" alt="" title"" border="0"/>

    I put same code in except I changed alt="model2" title="model2" border="0"/>

    If anyone can fix this problem for me and it works, Ill swear, Ill send you a gift. a little painting. Cause Ive been trying to get round this bend for weaks, so I can start trying to create and experiment more with the code.
    I dont want to give up, but Im running out of time and money. Dont feel like working as a no brain laborer again.

  2. #2
    Join Date
    Apr 2012
    Posts
    11
    Looks like you are using a web editor that is trying to pull the file up from the "C-Drive" on your local hard drive. You need to create a file structure that is similar in design on your hard drive that is the same as on your server or you need to hand code this to fit the file structure that you have on your server. If your images are in your image file on your server then you
    <img src="http://www.YOURSITE.com/images/model2.png.jpg" width="100" height="100" alt="" title"" border="0"/>

  3. #3
    Join Date
    Apr 2012
    Posts
    11
    is your file really .png.jpg??? maybe clean that up as well.

  4. #4
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    4
    is that even possible? .png.jpg? from what I understand I don't think that is, you should clean up everything it will be able to spot things easier and fix them easier

  5. #5
    Join Date
    Nov 2002
    Posts
    2,632
    model2.png.jpg is a jpg file that might have been an intended png file that got saved as the wrong type. It might be good to zip your files into a folder and attach them so we can see what physically is going on.

  6. #6
    Join Date
    Apr 2012
    Posts
    110

    Hi spufi, how do I put the folder on here

    Hi Spufi, ive put the file in a folder, how do I put it on here. I did name the file png, after it was jpg I think, the editor did that.

  7. #7
    Join Date
    Nov 2002
    Posts
    2,632
    Zip the folder with all of the needed files and then add it as an attachment in a post.

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