After fiddling around a bit I managed to find a way of doing it myself.
If anyone is interested, here's what I did (maybe clunky, but still working quite nicely):
In header.html, add the following JavaScript between the HEAD tags:
<SCRIPT LANGUAGE="JavaScript">
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
<!--Link textboxes-->
var isReady = false;
function showAddress(What){
if (isReady){
document.Which.Where.value = '<a href="http://www.yoursite.com"><img src="' + What + '" border=0></a>';
document.Which2.Where2.value = '[URL=http://www.yoursite.com][IMG]' + What + '[/IMG][/URL]';
}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 = '';
document.Which2.Where2.value = '';
}else{
alert("This page is not fully loaded yet...\nPlease wait for the page to finish loading.");
}
}
</script>
In the same file, add the following snippet to the BODY tag:
onload="isReady=true"
In details.html, add the following after {image} (~line 193):
<br /><font size=-2>Click Image to get Link!</font><br />
<br /><form name="Which"><input type="text" size="50" name="Where" style="background-color: #ffffff; font-weight: bold; font-size: 7pt;"><br /><input type="button" value="Highlight Link" onClick="javascript:Where.focus();Where.select();" style="background-color: #dadada; font-weight: bold; font-size: 7pt;"></form>
<form name="Which2"><input type="text" size="50" name="Where2" style="background-color: #ffffff; font-weight: bold; font-size: 7pt;"><br /><input type="button" value="Highlight Link" onClick="javascript:Where2.focus();Where2.select();" style="background-color: #dadada; font-weight: bold; font-size: 7pt;"></form>
Feel free to change the style to fit your environment.
Finally, change gif.html to:
<img src="{media_src}" border="1" alt="{image_name}"{width_height} onMouseDown="showAddress(this.src)" /><br />
You should now end up with a clickable image that generates two codes in two textboxes under the image.
I'm not sure how this works with other file formats but and I take no responsibility for any mess-ups
![Wink ;)](https://www.4homepages.de/forum/Smileys/default/icon_wink.gif)
Pelle