Fixed the link from above added \' instead of " so it will see it as outside link
with the
Code:
href="'+theLinks[whichImage]+'"
It saw the link as
http://www.yourdomain.com/http://www.outsidedomain.com
with the with the
Code:
href=\''+theLinks[whichImage]+'\'
it will read it as
http://www.outsidedomain.com
Code:
<!-- Banner Ad Add-on Start -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin Random Logo In Header Script
var theImages = new Array() // do not change this
var theLinks = new Array() // set up the container for the links
<!-- Edit the url images to match yours
theImages[0] = 'images/banners/00001.jpg'
theLinks[0] = 'http://www.00001.net'
theImages[1] = 'images/banners/00002.gif'
theLinks[1] = 'http://www.00002.com'
theImages[2] = 'images/banners/00003.gif'
theLinks[2] = 'http://www.00003.com'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<div align="center"><a href=\''+theLinks[whichImage]+'\' target="_blank"><img src="'+theImages[whichImage]+'" border="0" alt="{vb:raw vboptions.bbtitle}" /></a></div>');
}
// End -->
</script>
<!-- logo -->
<a name="top"></a>
<td align="$stylevar[left]"><SCRIPT LANGUAGE="JavaScript">
showImage();
</script>
<!-- Banner Ad Add-on End -->
left the image part alone so it will read the root as
http://www.yourdomain.com/