View Full Version : adding images question


DarkBeforeDawn
05-03-2003, 10:44 AM
I'm new to this so be patient please... lol
I'm trying to add and image. I copied and pasted the code from "maxes page" and just changed the image file name to the name of my .jpg. The picture is in the same folder with the page file. I don't have my page uploaded yet but shouldn't I be able to view it in IE? All I get for the picture is the red X box. Here's the code:

<center><img src="HTClot.jpg" width="161" height="195" alt="Happy Trail Carnival"></center>

thanks for the help folks!

MaGiCSuN
05-03-2003, 10:54 AM
check if you file has the exact name as you typed in the code that you viewed:

HTClot.jpg it could also be htclot.jpg

if you don't type it the exact way the image will turn out to be a red x

Love,
Mirna

Stormx
05-03-2003, 11:15 AM
IF you are not viewing your page online then then IE has no idea of the directory your image is in. Upload your page and run it form it's web loacation. For instance if you picture was at http://www.mywebpage.com/HTClot.jpg and you are running your webpage from c:/mywebpage.html then it is in compleatly different directories. Upload your webpage or alternativlly give the FULL URL of the picture. eg.

<img src="http://www.mywebpage.com/HTClot.jpg" width="161" height="195" alt="Happy Trail Carnival">

DarkBeforeDawn
05-03-2003, 11:17 AM
yes, the image name is exactly the same

ok! guess it's time to try uploading for the first time, hehe

MaGiCSuN
05-03-2003, 11:19 AM
Stormx, the person said he didn't uploaded it so yeah

you should see it, because i also always test my pages out in my regular IE browser offline. Are you also sure you didn't saved as .JPG instead of .jpg ?

Stormx
05-03-2003, 11:27 AM
If she is testing the file localy and trying to call the image from a directory that doesn't exist locally and only exists on the webpage then will it work? I sugest specifing the full URL when testing localy.

Stormx
05-03-2003, 11:35 AM
Oops, sorry. ^^^^ me and my skim reaidng. Yeah, well, check the file format and its capitalisation. Heres a tip: Keep all files in lowercase. I makes life much simpler