The script looks like this:
- Code: Select all
<script language="javascript">
function activateLink(obj){
myDiv=document.getElementById(obj);
myDiv.innerHTML='<a href="'+myDiv.attributes["value"].nodeValue+'" target=_blank>'+myDiv.innerHTML+'</a>';
}
</script>
<div id=link2>[include file="ad1.php"]</div><p>
<div id=link1 style="font-family: impact; font-size: 28px;" value="http://#/wp-content/plugins/download-monitor/download.php?id=79">Ladda Ner</div></p>
The include file contains this code:
- Code: Select all
<a href="#" onclick="activateLink('link1');" target="_blank"><img src="#/wp-content/uploads/2011/04/103381.jpg" alt="Klicka här" border="0" /></a>
The problem I have is that user can't get the script to work, and it has been like this for the last week. Before that, it worked really good.
Anyone have an idea why it's not working?


