Image on Test Page Won't Load

Status
Not open for further replies.

Sonic2nd

New Member
Messages
5
Reaction score
0
Points
0
Hi,

I haven't made a web page in over seven years so I'm basically relearning all that I have forgetten. But the one thing I can't figure out is how to get a image to load on my web page. I watched the file manager video & searched the forums for people having similar problems but still I can't find the exact answer I need.

http://sonic06.x10hosting.com/

This is a web page I put out as a test. It's suppose to show a screenshot I took from a Sonic game but it doesn't work. The picture is called ns148.jpg and is located in my public_html folder. (/home/sonic2nd/public_html) I can view the picture in file manager so I know the picture works okay.


The full coding of my web site is below. I made the website using the Trellian Webpage program.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Enter Page Title Here</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6001.18183" name=GENERATOR>
<STYLE type=text/css>BODY {
FONT-FAMILY: verdana, arial, sans-serif
}
</STYLE>
</HEAD>
<BODY>

<P>Test Web Page</P>
<P><IMG
src="../../../Eve's Folder/For Sonic DVD/Sonic Next Gen/Videos/Sonic 06 Cutscenes/31. Nice Smile/ns148.jpg"
border=0></P>
<P>&nbsp;</P>
<P>&nbsp;</P>
</BODY></HTML>

If anyone could help me I would really appreciate it.

Bye for now,
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
Change the code to the following:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Enter Page Title Here</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6001.18183" name=GENERATOR>
<STYLE type=text/css>BODY {
FONT-FAMILY: verdana, arial, sans-serif
}
</STYLE>
</HEAD>
<BODY>

<P>Test Web Page</P>
<P><IMG src="ns148.jpg" border=0></P>
<P>&nbsp;</P>
<P>&nbsp;</P>
</BODY></HTML>
 
Last edited:

Sonic2nd

New Member
Messages
5
Reaction score
0
Points
0
I tried changing the code like you said and now the picture loads. Thank you so much!
 

Sonic2nd

New Member
Messages
5
Reaction score
0
Points
0
The problem was with the image code. I had to shorten it to make it work properly. Now my webpage can display images. I just have one other question though. I've just started using x10's html editor and I can't figure out how to add a background to my webpage.
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
The problem was that you had entered the wrong path to the image:
You put: ../../../Eve's Folder/For Sonic DVD/Sonic Next Gen/Videos/Sonic 06 Cutscenes/31. Nice Smile/ns148.jpg
When it should have been just: ns148.jpg
You had put the relative path to the image when it was on your computer, but when you uploaded the image the path changed as it was now in the same directory as the .html page.

The simplest way to add a background colour is to change the BODY tag to: <BODY bgcolor="yourchosencolour">
 
Status
Not open for further replies.
Top