Adblock breaks this site

Question for Image code (xhtml)

Discussion in 'Web Programming' started by iAsian, Jan 27, 2009.

  1. iAsian

    iAsian Newcomer

    Joined:
    Dec 27, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    Question for Image code (xhtml)

    As said, for the title.
    My question regards the Image code.
    Yes I know the code. <img scr="(Image source here)" />

    Now my question is, how do I get the source of an image from my computer and put it into the Image code, and for it to appear on the browser?
    I've opened the image in my internet browser, and have coped pasted the url of it and it still doesn't seem to work for me when I try viewing the page on a browser.
    Currently the code is something like this:
    <img scr="file:///C:/Users/Vista/Desktop/School%27s%20Folder/Pictures/1_70096_FS.jpg" />

    Any ideas?

    If you're wondering why I don't just upload the image onto a site, it's because I'm doing this for a school competition, and using images provided by the school.

    Thanks,
    iAsian.
     
  2. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    Question for Image code (xhtml)

    If the image is in the same folder as the html file, just put the image file name. If the image is in the folder "Pics" that is in the folder that has the html file, but "pics/imagefilename", if the pic is one folder up from the current folder put "/../imagename"... :/
     
  3. iAsian

    iAsian Newcomer

    Joined:
    Dec 27, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    Question for Image code (xhtml)

    I've tried it earlier before, and it still doesn't work for me.
    The picture doesn't show anything.
    I've used google for this problem and cannot find anything.
    Thanks for some feedback though.
     
  4. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    Question for Image code (xhtml)

    is the image saved in the same folder had to html file?
     
  5. iAsian

    iAsian Newcomer

    Joined:
    Dec 27, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    Question for Image code (xhtml)

    Ok, so I've putted the XHTML document and the image into the same folder.
    It still shows up the same nothing worked.
    When I get home from school today, I'm going to use Dreamweaver and use the img scr code to see what code they use, and to see if it works in the browser.
    If you have any other ideas, I'd be more then happy to know.
    Thanks,
    iAsian.

    I just used Frontpage and did insert>images>from file and this is the code it gave me.
    <img border="0" src="fitnessx.jpg" width="162" height="200">
    And yes, it shows when I look in the browser, but now I'm wondering why that code worked, and not the code I used?
     
  6. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    Question for Image code (xhtml)

    because the code you used is not right... i told you the right way... ?
     
  7. iAsian

    iAsian Newcomer

    Joined:
    Dec 27, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    Question for Image code (xhtml)

    Never mind , I know what I did wrong.
    No you didn't help much, most of the information you posted I found googling it before I ever posted this thread.
    Thanks anyways,
    iAsian.
     
  8. hampe-92

    hampe-92 Forum Addict

    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0
    Question for Image code (xhtml)

    you wrote "file:///" before the path <img scr="file:///C:/Users/Vista/Desktop/School%27s%20Folder/Pictures/1_70096_FS.jpg" />
    the path only would do it...
     
  9. iAsian

    iAsian Newcomer

    Joined:
    Dec 27, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    Question for Image code (xhtml)

    My problem was that, I wrote the img src code wrong actually.

    <img scr="file:///C:/Users/Vista/Desktop/School%27s%20Folder/Pictures/1_70096_FS.jpg" />

    If you can see, I putted Img Scr, it's supposed to be Img Src
     
  10. hampe-92

    hampe-92 Forum Addict

    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0
    Question for Image code (xhtml)

    ahh, it took a while for me to notice!:p
     
  11. the sarcasm

    the sarcasm Active Member

    Joined:
    Feb 5, 2009
    Posts:
    101
    Referrals:
    2
    Sythe Gold:
    0
    Question for Image code (xhtml)

    Don't have a clue.
     
< Image Editer for <COODS="xxx"> | Python ; FTP Anonymous Scanner bot >


 
 
Adblock breaks this site