total.load
Newbie
- Jan 24, 2012
- 22
- 2
I've found this script:
And it says that will auto click (and open in new window).
I don't know much about javascript.What I have to add so it 'll become functional with my site,and where I have to upload it(i have an wordpress site)?
PHP:
<a id="abanner"><img src="#" id="ibanner" alt="" /></a>
<script type="text/javascript">
//fill in the information here:
bannerCreate("yourimage","yourlink");
function openWindow(linkLocation)
{
window.open(linkLocation,"");
}
function bannerCreate(imageSrc,linkLocation)
{
var a=document.getElementById("abanner");
var i=document.getElementById("ibanner");
a.href="javascript: openWindow('"+linkLocation+"')";
i.src=imageSrc;
}
</script>
I don't know much about javascript.What I have to add so it 'll become functional with my site,and where I have to upload it(i have an wordpress site)?