Solved

Want to make image clickable in this code

Posted on 2007-11-17
7
311 Views
Last Modified: 2010-04-21
Hi,

I have this code, what I want is when someone clicks on the image the code should work to.
How to do that?

Thanks,
HP


if(isPPC()) {

							document.write('<img src="http://www.scheerkoppen.nl/images/mailafriend.jpg" alt="Mail deze pagina naar een bekende"><A class="standard" HREF=\"mailto:\?subject\=Bekijk deze pagina die ik heb gevonden, ' + document.title + '?body=Klik op: ' + window.location + '\" onMouseOver="window.status=\'Mail deze pagina\'; return true" TITLE="Mail deze pagina ">mail deze pagina<\/A>');

							}

Open in new window

0
Comment
Question by:HPvH
  • 3
  • 2
  • 2
7 Comments
 
LVL 1

Expert Comment

by:beckman55
ID: 20305305
check out the following site.  I think this is what your looking for.

http://catcode.com/linkguide/clickimage.html
0
 
LVL 1

Expert Comment

by:beckman55
ID: 20305315
For both codes below you will need to make sure you remove the ** before you use them

To make an image into a hyper (clickable) link is a very easy code.

In HTML it is

<**a href="http://URL you want them to go to" target="_blank"**> <**img src="http://URL of picture that you want to use"**><**/a**>

For forums such as ours, you use this code ..

[URL**=http://URL of the site][**IMG]http://URL of the image[**/IMG] [**/URL]
0
 
LVL 21

Expert Comment

by:nizsmo
ID: 20305392
This should work.
if(isPPC()) 

{

    document.write('<A class="standard" HREF=\"mailto:\?subject\=Bekijk deze pagina die ik heb gevonden, ' + document.title + '?body=Klik op: ' + window.location + '\" onMouseOver="window.status=\'Mail deze pagina\'; return true" TITLE="Mail deze pagina "><img src="http://www.scheerkoppen.nl/images/mailafriend.jpg" alt="Mail deze pagina naar een bekende">mail deze pagina<\/A>');

}

Open in new window

0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:HPvH
ID: 20305451
Nizsmo,

The you can click on the picture, the only thing now is that the body text comes in the subject of the mail...??
0
 
LVL 21

Expert Comment

by:nizsmo
ID: 20305485
This should work.
if(isPPC()) 

{

document.write('<a class="standard" HREF="mailto:me@me.com?subject=Bekijk deze pagina die ik heb gevonden, ' + document.title + '&body=Klik op: ' + window.location + '" onMouseOver="window.status=\'Mail deze pagina\'; return true" TITLE="Mail deze pagina "><img src="http://www.scheerkoppen.nl/images/mailafriend.jpg" alt="Mail deze pagina naar een bekende" border=0>mail deze pagina<\/a>');

}

Open in new window

0
 
LVL 21

Accepted Solution

by:
nizsmo earned 125 total points
ID: 20305493
Refined, removed the "\" at the end, as you don't need it.
if(isPPC()) 

{

document.write('<a class="standard" HREF="mailto:me@me.com?subject=Bekijk deze pagina die ik heb gevonden, ' + document.title + '&body=Klik op: ' + window.location + '" onMouseOver="window.status=\'Mail deze pagina\'; return true" TITLE="Mail deze pagina "><img src="http://www.scheerkoppen.nl/images/mailafriend.jpg" alt="Mail deze pagina naar een bekende" border=0>mail deze pagina</a>');

}

Open in new window

0
 

Author Closing Comment

by:HPvH
ID: 31409743
Thanks!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now