HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Creating a code for a banner
Post new topic   Reply to topic    HTML Help Forum Index -> Images & Graphics
View previous topic :: View next topic  
Author Message
Dave Harm



Joined: 11 Feb 2008
Posts: 4

PostPosted: Mon Feb 11, 2008 3:05 pm     Creating a code for a banner Reply with quote

I apologize in advance if this has been talked about before. I am extremely ignorant to HTML. I have a website but use the codes rarely.

A site I visited would like to display my banner on their site, but they need it in HTML. I've been battling this for close to three hours (like I said this is very mind boggling to me.)

My website is www.daveharm.com

I am trying to create a code for a large GIF banner on my "linkback page."

This is what I've come up with -

<a href=http://www.daveharm.com/ “ target=”blank”><img
src=http://www.daveharm.com/images/dh_logo1_468x60px.gif”alt=”daveharm.com”/
></a>


I think I'm close, but in all honesty, I really don't know.

If anyone could help me

Thanks,
Dave
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8428
Location: Castle Pines North, CO USA

PostPosted: Mon Feb 11, 2008 3:56 pm     Reply with quote



Almost - try something like
Code:
<a href="http://www.daveharm.com" target=”blank”><img src="http://www.daveharm.com/images/dh_logo1_468x60px.gif" alt="daveharm.com" /></a>

_________________
Corey
Residential Office Solutions | Mile High Merchant Accounts | Expression Web Blog
Dave Harm



Joined: 11 Feb 2008
Posts: 4

PostPosted: Mon Feb 11, 2008 4:04 pm     Reply with quote

Man... was I close

closer than I thought

Thanks
Dave Harm



Joined: 11 Feb 2008
Posts: 4

PostPosted: Tue Feb 12, 2008 3:31 pm     Reply with quote

That worked for that banner but why can't I change the banner size and it won't work. My goal is to have all my banners ready for download to HTML

An example from my linkback page www.daveharm.com/linkback

The smaller GIF banner when I subsitute

http://www.daveharm.com/images/dh_logo1_234x60px-2.gif

where

http://www.daveharm.com/images/dh_logo1_468x60px.gif

was - it won't work and it won't work on my jpeg banners

Now what am I doing wrong?

Thanks
Dave
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8428
Location: Castle Pines North, CO USA

PostPosted: Wed Feb 13, 2008 10:35 am     Reply with quote

You can add the height / width attributes to your HTML code
Code:
<a href="http://www.daveharm.com" target="_blank"><img src="http://www.daveharm.com/images/dh_logo1_468x60px.gif" alt="daveharm.com" "width=200px" "height=125px" /></a>
If it is a JPG, you would need to change the source code to a jpg extension.

And you can specify height / width in the image
Code:
<a href="http://www.daveharm.com" target="_blank"><img src="http://www.daveharm.com/images/dh_logo1_468x60px.gif" alt="daveharm.com" "height=125px" "height=125px" width="234" height="30" /></a>
But the examples you posted are GIFs not JPGs which might be the problem

_________________
Corey
Toll Free Fax Solutions | Mile High Merchant Accounts | Expression Web Blog
Dave Harm



Joined: 11 Feb 2008
Posts: 4

PostPosted: Wed Feb 13, 2008 3:21 pm     Reply with quote

I'm scratching my head, trying to figure out how come it works - but it does...

Thanks again,
Dave
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> Images & Graphics All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial