?
Solved

Want to make image clickable in this code

Posted on 2007-11-17
7
Medium Priority
?
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

 

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 500 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

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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…
Suggested Courses

752 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