image not showing up on table

Hi,

here's my code:

<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" BACKGROUND="http://abc.com/abc/images/misc/image2.jpg" repeat >
<tr>
<td align="left"><img src="http://abc.com/abc/images/misc/image1.jpg"  /></a>
</td>
<td>
<img scr="http://abc.com/abc/images/misc/logo.gif" />
</td>
</tr>
</table>

Now the logo.gif doesn't show up.  I can see that the image is attached but it is not visible.  Could u please help me understand why its doing so and what am i doing here.  its the code for the banner of my home page.
Shiva_KumarAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

aherpsCommented:
lose the </a> tag
hieloCommented:
note: the path to those images do not exist. They give you a 404 error. The syntax is:
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="background: transparent url(http://abc.com/abc/images/misc/image2.jpg) scroll repeat top left" >
<tr>
<td align="left"><img src="http://abc.com/abc/images/misc/image1.jpg"  />
</td>
<td>
<img scr="http://abc.com/abc/images/misc/logo.gif" />
</td>
</tr>
</table>

Open in new window

Shiva_KumarAuthor Commented:
ok let me make it very simple.  Here's the code again:

<table>
<tr>
<td>This is a test</td>
<td><img scr="c:\logo.jpg" />
</td>
</tr>
</table>

even this doesn't show up the logo.jpg and it shows a red x instead of the image.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

hieloCommented:
You need to put the image within your web server space and provide the correct path. Let's say your website's homepage is at:
http://www.yoursite.com/index.html

AND le'ts also assume that your image is at:
http://www.yoursite.com/images/image1.gif

then what you need is:

<table>
<tr>
<td>This is a test</td>
<td><img scr="/images/image1.gif" />
</td>
</tr>
</table>
 
notice that the path starts with a leading slash. Basically, to get the correct path, you need to figure out what is the full path to your image:
http://www.yoursite.com/images/image1.gif
 
then remove the domain => http://www.yoursite.com
from that full path, leaving you with:
/images/image1.gif
 
and that is the path to your image. You can of course, just leave the full path if you want:
http://www.yoursite.com/images/image1.gif

Open in new window

aherpsCommented:
It should read
<table>
<tr>
<td>This is a test</td>
<td><img src="c:\logo.jpg" />
</td>
</tr>
</table>

img src - nor scr

Same problem in earlier code
hieloCommented:
If you are opening the file locally, then change:
<img scr="c:\logo.jpg" />
 
to:
<img scr="file:///c:\logo.jpg" />

Open in new window

hieloCommented:
Wait, the attribute is NOT "scr". The attribut is "src"

The "r" and the "c" are reversed!!!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shiva_KumarAuthor Commented:
Thanks
hieloCommented:
you are welcome
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.