If you want to add links to the banners into new windows
Code:
<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] = 'banner1.png'
theLinks[0] = 'http://link1.com'
theImages[1] = 'http://www.banner2.gif'
theLinks[1] = 'http://www.link2.net'
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]"><a href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}"><SCRIPT LANGUAGE="JavaScript">
showImage();
</script>
<!-- /logo -->