944,038 Members | Top Members by Rank

Ad:
0

Set an image as a link

by on Dec 27th, 2004
This snippet shows you how to add set an image as a link.

1) In the snippet find
Quote ...
<a href="IMAGE URL WHEN CLICKED">
and change Image Url when clicked to your liking.
2) Then find
Quote ...
<img border="0" src="URL OF IMAGE " width="65" height="38">
edit Url Of Imge to your liking.
3) If all went well you are done!
HTML and CSS Code Snippet (Toggle Plain Text)
  1. <a href="IMAGE URL WHEN CLICKED">
  2. <img border="0" src="URL OF IMAGE " width="65" height="38">
  3. </a>
Comments on this Code Snippet
Dec 27th, 2004
0

Re: Set an image as a link

Why are you setting the width and height of the image to 65x38 pixels in size?
The Queen of DaniWeb
cscgal is online now Online
13,646 posts
since Feb 2002
Dec 30th, 2004
0

Re: Set an image as a link

Oops!
Light Poster
helloadam is offline Offline
36 posts
since Dec 2004
Aug 14th, 2007
0

Re: Set an image as a link

I Don't Like That Red Lines Around My Picture In IE 6. What About Mozilla!!?
Newbie Poster
tuputips is offline Offline
1 posts
since Aug 2007
Dec 23rd, 2008
0

Re: Set an image as a link

thank you your for your code
Newbie Poster
uringinteristi is offline Offline
17 posts
since Dec 2008
Dec 23rd, 2008
0

Re: Set an image as a link

how to make snip code to drop my link URL with normal word?
Newbie Poster
uringinteristi is offline Offline
17 posts
since Dec 2008
Message:
Previous Thread in HTML and CSS Forum Timeline: Read contents of external text file into html page
Next Thread in HTML and CSS Forum Timeline: Single lined code for blinking any thing





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC