|
|
Subject:
Coding an image file
Category: Computers > Programming Asked by: jude1-ga List Price: $75.00 |
Posted:
08 Mar 2006 15:27 PST
Expires: 07 Apr 2006 16:27 PDT Question ID: 705116 |
How can I create a gif/jpg/or other image file so that it can easily be "cut and paste" but is clickable? In other words, I'd like the image to go to a certain page when clicked on, and I would like the user to just have to cut and paste the image (rather than dealing with html, etc.) to be able to add it to their website. These users might not know flash or java, so it would be great if it was kept simple. Ideally, it would be great to have a text link, too, but that makes it more complex. Please don't answer just to say "this can't be done." | |
|
|
There is no answer at this time. |
|
Subject:
Re: Coding an image file
From: jaspreet123-ga on 08 Mar 2006 18:10 PST |
You just need to look at the <img> tag in HTML. The src attribute needs to be looked at carefully. Here's a good link I could find. http://www.webcom.com/html/tutor/imagemaps.shtml However I am not sure what you meant by the following quote: "I would like the user to just have to cut and paste the image (rather than dealing with html, etc.) to be able to add it to their website." What exactly do you want the user to cut-paste ? The code for adding a clickable image on his webpage or ?? Please let me know. |
Subject:
Re: Coding an image file
From: ninokay-ga on 14 Mar 2006 12:18 PST |
Hello jude1 When you say you want users to be able to add the image to their website means that users must have at least a basic knowledge of HTML (<img> tag). However, if I understood the aim of your request, you can provide users with an image (let's say your company's logo) with a link (say your company's website) to place on their website, in this fashion: You ask users to place the following line of code in their html document: <script language="Javascript" src="http://www.yourcompany.com/mylogo.js"></script> The above line of code calls a file called 'mylogo.js' that you create on your server (website) which has the following line written in it: document.write('<a href="http://www.yourcompany.com/" target="_blank"><img src="mylogo.jpg" border="0"></a>'); When users place the '<script>' line into their HTML document, it'll automatically retrieve the image and the link you have set in the mylogo.js file on your website. Hope this helps, otherwise please clarify further so we can help you more. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |