Computer Hope

Internet & Networking => Web design => Topic started by: youtubemaker30 on April 20, 2013, 01:33:46 PM

Title: putting link code in banner image
Post by: youtubemaker30 on April 20, 2013, 01:33:46 PM
how do I put link code in banner??

So when someone clicks on it, it goes t o site??

[recovering disk space, attachment deleted by admin]
Title: Re: putting link code in banner image
Post by: camerongray on April 20, 2013, 02:17:51 PM
Assuming that you are inserting the banner as an image, you can simply wrap the "img" tags with a link.

For example:
Code: [Select]
<a href="http://www.example.com"><img src="yourimage.jpg"></a>
If you want the banner to open in a new tab (which is what most banners will do, you can set a target attribute like this:
Code: [Select]
<a href="http://www.example.com" target="_blank"><img src="yourimage.jpg"></a>
Title: Re: putting link code in banner image
Post by: theavries on May 17, 2013, 03:24:11 AM
change img into
Code: [Select]
<img src="yourimage.jpg" border="0">, so you won't get a blue line :)