The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I donno is the write forum if its not sorry...
Looking for a code to change my header logo in every hit. I found a code but it didnt work here i found : Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- /logo -->
<!-- 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.istmod.com/forum/images/banner/banner1.gif
theImages[1] = 'http://www.istmod.com/forum/images/banner/banner2.gif
theImages[1] = 'http://www.istmod.com/forum/images/banner/banner3.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('<img src="'+theImages[whichImage]+'">');
}
// End -->
</script>
<!-- logo -->
<a name="top"></a>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
showImage();
// End --></script>
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<center><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></center>
<td align="$stylevar[right]">
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
May be it is write code i am doing sometihing wrong, if it is not the write one could you guys suggest a me a one... Thanks alot... Nevermind i got the solution if anyone needs its here ; http://www.vbulletin.com/forum/showthread.php?t=116287 |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|