Google Answers Logo
View Question
 
Q: Coding an image file ( No Answer,   2 Comments )
Question  
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."

Request for Question Clarification by efn-ga on 08 Mar 2006 21:20 PST
Hi jude1-ga,

You wrote of making an image file clickable without specifying a
context.  It's easy to make an image clickable with HTML in a web
page.  Are you asking about that context?

It's easy to put an image in a web page with HTML so that a user can
easily get a local copy of the image file.  It's not easy to make it
easy for a user to paste an image from his or her local clipboard or
file system into a web page on his or her own website.  You would need
some kind of web page editor to accept the image data from the paste
command, get it into a file, and generate the HTML to include it in a
web page.  You might also have to figure out how to get the image file
and the web page file stored on the webserver.  Are you trying to
build a website that people can use to create and edit their own
websites?

It's also easy to make a text link in HTML on web page, not so easy in
other contexts.

Could you explain your question a bit more?

Thanks,

--efn
Answer  
There is no answer at this time.

Comments  
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.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy