Adding code to an image

They have: 1 posts

Joined: Aug 2007

Hi i was wondering if there was any way you could add html code or any kind of code to an image for instance like this "Making Money Online"

so if anyone wanted to use the image they would have to give you a link back to your site.

sitesupport's picture

He has: 190 posts

Joined: Jun 2007

Yep, you image tag can go inside the a tag:

He has: 698 posts

Joined: Jul 2005

I think he/she means putting a link on the image, not making the image itself a link. In that case, the only thing I can think of is to actually create the image with the link text on it and use image maps (pretty good tutorial here) to define the area where the link is. That's all I can think of right now. Wink

Kurtis

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

I read it as wanting to be able to force the link to be there anytime someone displays the image.

ie. I have an image on my website called Greggie.gif, and if you were to try to use that image on your site, it would automatically be a link back to my site.

If this is the case, then no. About the closest thing you can do is have the call to the image be a call to a script (PHP/ASP) that checks to see if the refering page (the one displaying the image) is your own, and if so, feed out the image, if it isn't, display a different image saying where the image was coming from.

-Greg

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.