Quote:
Originally Posted by xtreme2
pretty cool... all I am wondering is how would you get it to replace the forum logo?
http://forums.probe-enthusiast.com/
that is my forum... since my forum logo is routed into the heading, where would I put it? I got lazy and instead of changing the coding for my forum banner to be displayed, I just changed the filename so that it replaced the original logo.
Let me know...
|
Quote:
Originally Posted by Binoy
Nice mod...what if i want to have random lgo in my header ?
can someone help me in this ?
|
Find in header
Code:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
</td>
</tr>
</table>
<!-- /logo -->
and replace with
Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin Random Logo In Header Script
var theImages = new Array() // do not change this
<!-- Edit the url images to match yours
theImages[0] = 'http://www.yoursite.com/forum/images/banner1.gif'
theImages[1] = 'http://www.yoursite.com/forum/images/banner2.gif'
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="index.php"><img src="'+theImages[whichImage]+'" border="0" alt="$vboptions[bbtitle]" /></a></div>');
}
// End -->
</script>
<!-- output logo -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
showImage();
<!-- end -->
</script>
change the image paths accordingly.