Results 1 to 15 of 15

Thread: an HTML question

  1. #1
    Member
    Join Date
    Jun 2001
    Location
    CA
    Posts
    95

    an HTML question

    ok, i was programming a site in HTML and i put in an image as the head... i uploaded the image to the site and then i put in the code like this: <img scr="HTML://ban copy.jpg"> i also tried <img scr="ban copy.jpg"> both times when i viewed the site it came up with that thing with the triangle circle and box, all diff. color you know like just b4 a picture will come up? well the image never came up. wuts the problem? do i hafta wait a lil longer or is there a problem with the code? the image was pretty fancy..
    Yippee Kye Yay mothafukca
    - SUNDOG

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    8,585
    Incorrect code

    <img src="www.bob.com/bob.jpg"> </img>

    that is the correct format.

    ииии



    ииии

  3. #3
    Member
    Join Date
    Jun 2001
    Location
    CA
    Posts
    95

    .....

    ok so i have to put the site name and then the image file ?
    Yippee Kye Yay mothafukca
    - SUNDOG

  4. #4
    striderf1
    Guest

    Re: .....

    Originally posted by sundog
    ok so i have to put the site name and then the image file ?
    you can just put <img src="bob.gif"></a> as long as its on the server

  5. #5
    SG Enthusiast el bob's Avatar
    Join Date
    Jan 2001
    Location
    NY
    Posts
    1,629
    you don't need a </img> tag

    If the image is in the same directory (folder) that the .html or .htm file is in, then all you have to do for the SRC field is the filename and extension.

    Ex:

    www.mewantsdomain.com/here.html

    / (base directory)

    here.html
    bob.gif

    ------------
    then in your html you would do
    <img src="bob.gif">

    if the situation was like this then...

    / (base directory)

    here.html
    images (no extension ---> directory)

    /images

    bob.gif

    ----------
    then in your html it would look like this

    <img src="images/bob.gif">

    Good luck.
    What's the most expensive purchase you've made on your miles/reward credit card? Starwood Preferred Guest Credit Card Application

  6. #6
    Member
    Join Date
    Jun 2001
    Location
    CA
    Posts
    95

    ...

    k thanks man......... take a look at it tho if u want....
    http://www22.brinkster.com/thetst/home
    Yippee Kye Yay mothafukca
    - SUNDOG

  7. #7
    mbryant707
    Guest
    I looked at your html and believe it needs to be more like this.

    <code>



    <html>
    <head>
    <title>*tSt* Delta Force LW Squad</title>
    </head>
    <body text="red">
    <img src="bannercopy.jpg">
    <p>Welcome to the *tSt* Homepage. We are a very
    new DFLW squad. Please check out all of the links and enjoy your stay.</p>

    </body>
    </html>



    </code>

  8. #8
    Member
    Join Date
    Jun 2001
    Location
    CA
    Posts
    95

    .

    hmmmmm ok i will try it,,, thanks
    Yippee Kye Yay mothafukca
    - SUNDOG

  9. #9
    Regular Member DiskDoc's Avatar
    Join Date
    Feb 2001
    Location
    VA
    Posts
    447
    Originally posted by PING
    Incorrect code

    <img src="www.bob.com/bob.jpg"> </img>

    that is the correct format.

    well to make it more correct, put http:// 1st. try linking a site with only www and see happens. you should always include http://
    Share What You Know, Learn What You Don't.
    RapSource.Com

  10. #10
    New Member
    Join Date
    Jun 2001
    Location
    crofton, maryland
    Posts
    11
    well, you can also include a BASE tag for your pages, then you do not need to add absolute links to each and every image/link/etc.

    like this:

    [goes above the HEAD tag, below any META tags]

    <BASE HREF="http://www.thisismysite.com/index.html">

    now you can name your link relative to their location on that server, ie:

    <img src="images/myimage.gif">

    which, with the base tag, translates to:

    http://www.thisismysite.com/iimages/myimage.gif

    make sure your images are uploaded on the remote [server] too, because even if previewed locally, it will hunt out the images from the server... that is the only drawback :/

  11. #11
    Member
    Join Date
    Jun 2001
    Location
    CA
    Posts
    95

    ...

    ok...... do u havta put <img src="images/myimage.gif</a> ? <i>i wanna know do u hafta put the image before /myimage.jpg</a>?</i>
    Yippee Kye Yay mothafukca
    - SUNDOG

  12. #12
    Member
    Join Date
    Jun 2001
    Location
    CA
    Posts
    95

    ...

    aw damn the <i> </i> didnt work for italics. when i put in bold it put in . is that in PHP?
    Yippee Kye Yay mothafukca
    - SUNDOG

  13. #13
    Member
    Join Date
    Jun 2001
    Location
    CA
    Posts
    95

    .....

    u cant see wut i put in to show wut it puts in as bold so i guess it is PHP. here i will spread it out to show.. [ B ] [ / B ]
    Yippee Kye Yay mothafukca
    - SUNDOG

  14. #14
    New Member
    Join Date
    Jun 2001
    Location
    crofton, maryland
    Posts
    11
    only if the image you are trying to reference is in a directory other than the ROOT of your server.

    if the image is in the SAME directory as the page you are referencing the image for, then the code would simply be:

    <img src="myimage.gif">

    but say you put that image is a directory called graphics, then:

    <img src="graphics/myimage.gif">

    or in 2 directories, a COOL directory in the GRAPHICS directory:

    <img src="graphics/cool/myimage.gif">


  15. #15
    Regular Member DiskDoc's Avatar
    Join Date
    Feb 2001
    Location
    VA
    Posts
    447
    I READ ONE OF YOUR POST WHERE U SAID U KNEW html.. HMMMM
    Share What You Know, Learn What You Don't.
    RapSource.Com

Bookmarks

Posting Permissions

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