Ok, see I need to deliver that service from the server to the person who clicks.
I found these but i need to combine them somehow.
Try this first one, it works well but I'd have to add the script to each image I think. The 2nd one is more advanced in some ways but not others.
Code:
<html lang=fr>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><Title>Copy on click</title>
<script language=javascript>
function copier(obj)
{
document.ze_form.ze_texte.value=obj;
var texteACopier = document.ze_form.ze_texte.createTextRange();
texteACopier.execCommand("Copy");
}
</script>
</head>
<body bgcolor=black>
<form name="ze_form">
<input type="hidden" name="ze_texte">
</form>
<center>
<table border = 0 cellpading=0 cellspacing=0 width=800 height=600>
<td valign=tp><br><br><br><br>
<center><font size=4 Face=tahoma color=Red><b>How it work</b>
<b>click in the case and do copy in the notpad for exemple</b></font>
</font>
<center><table border=1 width=100>
<td align=left width="150">
<center>
<img border="0" src="Shortcuts/My%20Documents/My%20Pictures/021025-getting.jpg" width="160" height="228"><a/>
</td></center></center>
</td></table></center>
</body>
Code:
============================================================
Script: Access Image URL to TextBox
Functions: When an image is clicked, this script will show
the image URL in a textbox. Useful for cases
where you want others to be able to copy the
image address easily for linking... such as for
banners, logo graphics, etc. A single instance
of the script can be attached to any number of
images in the page.
Browsers: NS4-7, IE4 and later
Author: etLux
============================================================
INSTRUCTIONS:
Step One: The Script
---------------------
Paste the following script into the <head> ... </head> of
your page. There are no script set-ups needed.
<script language="JavaScript">
// Script Source: CodeLifter.com
// Copyright 2002
// Do not remove this notice
var isReady = false;
function showAddress(What){
if (isReady){
document.Which.Where.value = What;
document.Which.Where.focus();
document.Which.Where.select();
}else{
alert("This page is not fully loaded yet...\nPlease wait for the page to finish loading.");
}
}
function clearAddress(){
if (isReady){
document.Which.Where.value = '';
}else{
alert("This page is not fully loaded yet...\nPlease wait for the page to finish loading.");
}
}
</script>
Step Two: The Body Tag Onload Event
------------------------------------
Add onload="isReady=true" to your body tag, as shown below.
This is necessary to prevent false object calls prior to
the page being fully loaded. Thus:
<body onload="isReady=true">
Step Three: The TextBox
-------------------------
Insert the following code for the text box in your page. (It
may be anywhere in your page.) Do not change the form or
field names.
<form name="Which">
<input type="text" size="60" name="Where">
</form>
To clear the textbox from a link in the page, use this:
<a href="#" onClick="clearAddress()">
Clear
</a>
Step Four: Attaching To The Images
-----------------------------------
You may attach the script to as many images as you wish. To
attach to the image add onMouseDown="showAddress(this.src)"
to the img src tag, as shown in the sample below.
<img src="http://site.com/image.gif"
width="100"
height="100"
border="0"
onMouseDown="showAddress(this.src)">
Note that you can use either the explicit http:// address of
the image, or just a relative address to the image file.
In the later case, it will still return the full http
path to the image in the text box.
============================[end]===========================
Bookmarks