Saturday, April 18, 2009

Have created web pages .it shows some red crosses instead of pictures and no links work?

I have created web pages after uploading exact ly all the files in two free web hosting (Geocities and free spaces ) it shows some red crosses instead of pictures and no links work and I can only access home page background . What should I do?
Have created web pages .it shows some red crosses instead of pictures and no links work?
the paths to the images isn%26#039;t correct.





The best way to link images (or other pages) in your site is by relative links as opposed to absolute links.


An absolute link is like %26quot;http://www.mysite.com/images/photo.jpg%26quot;





example: you have your index.html and your images in a folder called %26quot;images%26quot;





the directory where the index.html is your %26quot;root%26quot; directory. So the images directory would be /images.





In the index I want to link to a photo. %26lt;img src=%26quot;images/photo.jpg%26quot; ..... %26gt;





if I had another page %26quot;news.html%26quot; in the diretcory /news (for instance) and I wanted to put a link back to the index page the link would be %26lt;a href=%26quot;../index.html%26gt;index%26lt;/a%26gt;


../ means %26quot;up one level%26quot;





Now with that in mind if I had a photo on the page %26quot;news.html%26quot; that%26#039;s in the /images directory then the link would be %26quot;../images/photo.jpg%26quot;


... which means %26quot;up one level%26quot; then go to %26quot;images%26quot; directory for %26quot;photo.jpg%26quot;





It may be possible (maybe) that if you were using a HTML editor to build the page(s) the editor may have linked the images absolutely on your pc. Instead of %26quot;images/photo.jpg%26quot; it may have done %26quot;file://C:/Documents%20and%20Settings...... (and so-on)%26quot;





My site has basic html code done just with a text editor. You can go to it and look at the code to help you understand it better. Just right-click somewhere on the page and select %26quot;View source%26quot;: http://www.one-tweak-loop.com/


_
Have created web pages .it shows some red crosses instead of pictures and no links work?
I would double check your html code.


You may have typed it wrong.


No comments:

Post a Comment