Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

images.


  • Please log in to reply

#1
Killua

Killua

    Member

  • Member
  • PipPip
  • 10 posts
I'm having trouble see my imgs my compy wont show them, am I using a bad html?


<img src="C:\Documents and Settings\Nightmare\My Documents\Sprite Documents\Archer inst2.bmp">
  • 0

Advertisements


#2
Killua

Killua

    Member

  • Topic Starter
  • Member
  • PipPip
  • 10 posts
I'm having trouble see my imgs my compy wont show them, am I using a bad html?


<img src="C:\Documents and Settings\Nightmare\My Documents\Sprite Documents\Archer inst2.bmp">
  • 0

#3
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Looks like the wrong way to write the full path to your image. Try a forward slash (/). If the HTML file and image are in same folder, just shorten path to the image's file name only:

<img src="image_name.jpg" width="xxpx" height="xxpx" alt="">

If image is in another folder say, imgs, then:

<img src="imgs/image_name.jpg" width="xxpx" height="xxpx" alt="">

Might check into use of using full, relative and absolute paths.

Ron
  • 0

#4
Killua

Killua

    Member

  • Topic Starter
  • Member
  • PipPip
  • 10 posts
But it's weird, i used the same path on a different one ad it worked, I think it's something with the internet provider...

ex: I used it on page one and it worked but I used the same path on page 2 and a red "X" came up.
  • 0

#5
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Using a path to your C drive is not going to work once image and HTML file has been up loaded. Maybe on a local network. Do you have a URL where this can be checked online?

Ron
  • 0

#6
Killua

Killua

    Member

  • Topic Starter
  • Member
  • PipPip
  • 10 posts
Sorry, i'm JUST learning html... I have no idea what you just asked.
  • 0

#7
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
I was asking if the page you are having problems viewing is online at some hosting service and what is the path to it so I can view the page and the code.

Ron
  • 0

#8
Stryker250

Stryker250

    Member

  • Member
  • PipPip
  • 16 posts
When working with the web you do not specify file paths with a backslash like in Windows. But rather with a forward slash.Using your C:\ is not going to work either because that is not your document root of your web folder.

I am assuming you are simulating a server on your own PC, or you are just messing around with .html files which don't need any server simulation. If that is the case then you may use your C:] as a pointer to where ever. Check your file path to see that it is correct, also check spelling.
  • 0

#9
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts

When working with the web you do not specify file paths with a backslash like in Windows. But rather with a forward slash.Using your C:\ is not going to work either because that is not your document root of your web folder.

I am assuming you are simulating a server on your own PC, or you are just messing around with .html files which don't need any server simulation. If that is the case then you may use your C:] as a pointer to where ever. Check your file path to see that it is correct, also check spelling.

Think we covered all that in previous posts. Just waiting on answers to last few posts from OP.

Ron
  • 0

#10
Killua

Killua

    Member

  • Topic Starter
  • Member
  • PipPip
  • 10 posts

I was asking if the page you are having problems viewing is online at some hosting service and what is the path to it so I can view the page and the code.

Ron

yes, I'm just messing around offline. and I have no webpage. I'm in like an 8th grade html codes class. I only know the very basics. and Mr. Ryan isn't here to help me T__T
  • 0

Advertisements


#11
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
OK. Well, the path you used after closer look is correct as to the way to do a complete path:

<img src="C:\Documents and Settings\Nightmare\My Documents\Sprite Documents\Archer inst2.bmp">

There may be, as mentioned, a wrong file name for image. Archer inst2.bmp is not the same as Archer inst2.BMP or archer inst2.bmp or Archerinst2.bmp. Usually the spaces are filled in with 20%:

<img src="C:\Documents20%and20%Settings\Nightmare\My20%Documents\Sprite20%Documents\Archer20%inst2.bmp">

Recheck the path, spelling, etc.. You might find a simple mistake.

HTHs,

Ron
  • 0

#12
Killua

Killua

    Member

  • Topic Starter
  • Member
  • PipPip
  • 10 posts
hmm. Is the html stuff spesified to different computer types? Like Hwelet Pakard and DELL are different or something?
  • 0

#13
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Not the PC, but good code usually is parsed properly by most browsers. Firefox is CSS2 compliant is the better browser for designing and checking web pages against. The best, that is, until the rest catch up. Don't see that happening soon. What browser are you using to practice viewing your HTML page? What HTML Editor are you using? Since you are studying HTML, maybe the teacher is limiting you to notepad. LOL

Ron
  • 0

#14
Killua

Killua

    Member

  • Topic Starter
  • Member
  • PipPip
  • 10 posts
I'm using firefox to view and yes I'm only using notepad to make the pages and yes I know that I can use Microsoft word or word perfect to make the html stuff, but I don't see how it makes a difference.
  • 0

#15
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Please do not use Word or Word Perfect unless you have a code stripper for the saved html pages. They add Mico$oft specific code that will play havoc with parsing pages on the web. Try a free editor like http://www.crystalfi....php?topicid=20. I am testing the new beta 2007 version right now. I'm listed in the credits if you get it and check. Brag, brag. :whistling: :blink:

Ron
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP