Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Embed url within an image

is this possible ?


Visit Thailand

10:22 am on Aug 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Is it possible to embed a url within an image which is to be used by other websites but housed on your own server, so that when someone sees the image it can be clicked to go to the url of choice ?

I should point out that while the image is served from our servers we would have no control over the html of the page where it is found. We therefore cannot ask the webmasters to add a link.

So I am wondering whether this can be done from my end ?


10:27 am on Aug 5, 2002 (gmt 0)

10+ Year Member

No url in any images.

You could write a javascript file to send the work to their browser. All they would have to put in would be:

<!--... link--><script language="JavaScript" src="http://.../link.js></script>

You could then change all links to your site in one fell swoop. You could change the location or name of the graphic whenever you want. You could replace it with text whenever you want. You can put special offers there whenever you want and base them on the JavaScript time function. It will be a load on your server, however.

Visit Thailand

10:34 am on Aug 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Thanks but can't do that. Is there no way to tell the server that when X image is called that it should reach out and grab a html (image map) file and use that with the image wherever it is being used ?


11:44 am on Aug 5, 2002 (gmt 0)

10+ Year Member

There is, but then when you request the graphic file it will take the html/js page, which will then try and get the graphic (but it won't because it will get the html page instead).


11:57 am on Aug 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

You could do it with Flash. Don't have much experience with it but maybe a Flash expert will give you some advice.


7:34 am on Aug 10, 2002 (gmt 0)

10+ Year Member

I also wish there would be a way. I hate it when people steal a picture from us by linking to our image file without any thanks or credits. And we get the bandwith usage! Beside writing in the image: visit www.oursite.com or simply re name it so their link becomes invalid, is there any thing else to do?


4:56 pm on Aug 12, 2002 (gmt 0)

WebmasterWorld Senior Member mivox is a WebmasterWorld Top Contributor of All Time 10+ Year Member

is there any thing else to do?

Not really. As long as the image is viewable in a browser, it is steal-able.


7:24 pm on Aug 13, 2002 (gmt 0)

10+ Year Member

Just make a new image with the same name and have it say in big bold text "This picture was stolen from www.yoursite.com" :)

...or something to that effect.


Featured Threads

Hot Threads This Week

Hot Threads This Month