Google Answers Logo
View Question
 
Q: HTML Image Tag ( No Answer,   3 Comments )
Question  
Subject: HTML Image Tag
Category: Computers > Internet
Asked by: x2zzz-ga
List Price: $50.00
Posted: 13 Feb 2003 11:53 PST
Expires: 12 Mar 2003 06:02 PST
Question ID: 160987
I have a page with an image tag that looks like this....

<img src="http://www.mysite.com/cgi-bin/image.pl?id=33333">

Using image.pl, is there any way I can return a clickable image (a
link) to that page?  I can put return any image I want, but I want the
visitors to be able to click on it.

I don't need suggestions with Javascript or how to pass links like
that, it HAS to use that image tag.

If you have any questions, please ask for clarification.  Thank you.

x2zzz

Request for Question Clarification by hammer-ga on 13 Feb 2003 12:15 PST
Are you talking about creating a situation where:
1. Your image.pl link is included in a web page on some other site.
We'll call it somepage.html.
2. When a visitor loads somepage.html, you want to rewrite the HTML of
the external page to add an anchor, rather than simply displaying an
image.
3. You do not have the cooperation of the person who created
somepage.html to put the anchors in for you.

Is this correct?

- Hammer

Clarification of Question by x2zzz-ga on 13 Feb 2003 12:25 PST
um...something like that :-)

  1.) The image tag is on another website.

  2.) I cannot modify the other website.

  3.) I can only modify the image.pl program.

  4.) I want to return an image that when clicked on goes back to my website.

I think that's what you said, so yah, that's the situation.

x2zzz

Request for Question Clarification by sycophant-ga on 13 Feb 2003 20:28 PST
The answer to your question is no, given the example you quote, where
the only thing you can change is the content returned in an IMG tag
you will not be able to do anything aside from displaying an image.

No-one is going to be able to suggest a way you can do what you want,
without altering the content of the page that includes the image, it
is outside the realms of HTTP/HTML.

I would be happy to answer this question with a detailed explanation
of why you can't and other similar situations where you may have other
options, but only if you are willing to accept 'no' as a answer.

Regards,
sycophant-ga

Request for Question Clarification by hailstorm-ga on 13 Feb 2003 21:03 PST
I concur with sycophant.  In the scenario you present, it is
fundamentally impossible to change anything on the external page using
image.pl other than the image that is displayed.

Clarification of Question by x2zzz-ga on 14 Feb 2003 05:00 PST
No, I will not take "no" for an answer :-)  Hince the $30.  I'm pretty
sure it can't be done as well, but I thought I'd give GA a try.

x2zz

Request for Question Clarification by hailstorm-ga on 15 Feb 2003 03:35 PST
Well, if you like I'll create a new browser software for you that
alters the function of the <IMG> tag to do what you want, then we can
write a virus that replaces everyone's browser with our new software. 
Please raise the price of this question to $5,000,000 and I'll get
right on it!

Clarification of Question by x2zzz-ga on 15 Feb 2003 08:23 PST
Hmmmm....I'm only willing to spend $50, that my work though ;-)

Clarification of Question by x2zzz-ga on 15 Feb 2003 08:24 PST
might* work

Request for Question Clarification by hailstorm-ga on 15 Feb 2003 22:18 PST
Well, for fifty dollars I'll tell you how to download the source of
the Mozilla browser, how to identify the code you'll need to change to
make the <IMG> tag hack work, and direct you to some sites that might
help you to write a cross-platform virus that will change everyone's
browser to the new hacked version. Would you accept this as an answer?

Clarification of Question by x2zzz-ga on 16 Feb 2003 10:52 PST
lol, no thanks hailstorm.  I will keep you in mind if I ever need to
write a virus though.  Thanks :-)

Request for Question Clarification by hailstorm-ga on 16 Feb 2003 14:53 PST
No problem!  Just trying to "think outside the box" for ya.  I'll let
you know if I have any other ideas...

Request for Question Clarification by hailstorm-ga on 16 Feb 2003 21:47 PST
If you have access to your server logs, you can look at all the
accesses to image.pl.  If you have referrer information you can
determine the top fifty sites that are currently accessing image.pl. 
Then close this question, and contact the owner of each of those
sites, offering them a dollar each to change their HTML from a static
image tag to a clickable image from the URL you specify.

Request for Question Clarification by cyclopatra-ga on 11 Mar 2003 20:39 PST
Are we talking about a single website, or multiple other sites hosting
the image tag? If one, what website is it? While we're at it, what's
your website's address? While I concur that there's no way to do this
within the scope of what you're saying, there may be alternate routes
to what you're talking about - but I need to see the setup to find
out...

Request for Question Clarification by joseleon-ga on 12 Mar 2003 00:15 PST
Hello:
  Do what you want would mean a security issue, you cannot attach
actions to an image if you are *just* providing the image and have no
access to the page source code. The answer is no, I know is not what
you want to hear, but... ;-)

Regards.
Answer  
There is no answer at this time.

Comments  
Subject: Re: HTML Image Tag
From: owain-ga on 14 Feb 2003 12:35 PST
 
I agree it isn't possible either. Either an <A> tag has to be made to
surround the image on somepage.html, which needs editing
somepage.html, or both the <A> and the <IMG> tags have to be
incorporated into somepage.html by somepage.html having a javascript
which calls text (including the <A> and <IMG> tags) from an external
server which is under x2zzz-ga's control.

Owain
Subject: Re: HTML Image Tag
From: x2zzz-ga on 14 Feb 2003 13:32 PST
 
$50 to whoever can figure out how to do the impossible :-)
Subject: Re: HTML Image Tag
From: darthcow-ga on 15 Feb 2003 00:54 PST
 
I would give users a different bit of html to use on their site - a
javascript snippet, one that can include html. So it would be:

<script src="http://www.mysite.com/cgi-bin/showimagejs.pl?id=33333"></script>

Then have the script include a link to an image at
http://www.mysite.com/cgi-bin/image.pl?id=33333. The javascript page
can send a cookie that says the user has loaded that page first that
is needed to view the image, so no one can circumnavigate the
javascript intermediary page.

That would be my prefered solution, at least. If you've already
distributed the image around the net, you could have the original
image.pl just display your URL without the cookie so webmasters are
forced to switch over.

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