English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

pls tell me what are posible mistakes

2007-04-29 01:07:23 · 3 answers · asked by hasantiger007 1 in Computers & Internet Programming & Design

3 answers

The syntax looks basically OK. Is this a case where you developed the code on your machine and uploaded it to a server, and now it doesn't work? If so, the problem is that you've made an absolute call to the image file's location. It would have been OK on your local machine, but when you upload the HTML to the server you have to change the file path to match the location on the server. The safest way to write your code is to make all references local to the same directory that the HTML is residing in, or make it a consistently named subdirectory. If you put the GIF file in the same directory as the HTML, then it would be .

It makes your code a lot more portable if you make image references relational, rather then absolute. Then, all you have to do is replicate the directory relationship on the server, instead of having to change the path information in hundreds or thousands of individual tags.

Then again, I might be missing the real problem, completely. I assume, also that you remembered to upload the image file in question, so it's actually available.

2007-04-29 01:20:06 · answer #1 · answered by DiesixDie 6 · 0 0

are you trying to get this image to display on a webpage and not from your HTML editor?... you might need to change the location of the image... so instead of "f:/adnan.gif" it should be...

2007-04-29 08:21:10 · answer #2 · answered by PC-Guy 3 · 0 0

"
Copy the image to a folder INSIDE your web, then link to that folder in your code as in
Upload all folders to your host and it will work.

2007-04-29 08:22:53 · answer #3 · answered by ELfaGeek 7 · 0 0

fedest.com, questions and answers