The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I would like the header image for my website to automatically rotate each time the page is refreshed, and that's all I need it to do.
I searched and searched but most of the rotating modifications seem to be geared towards advertising and its mind boggling on which one is the best application for what I need here. If all else fails I'll just try one after the next, but I thought perhaps its easiest to ask, which one should I use? Thanks, Tom |
|
#2
|
||||
|
||||
|
Could be pretty simple though, in your header template look up the place where the header image is set:
Code:
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /> Code:
<script language="JavaScript">
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish, upload these in your root images folder
myimages[1]="img1.gif"
myimages[2]="img2.gif"
myimages[3]="img3.gif"
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<img src="images/'+myimages[ry]+'" border=0>')
}
random_imglink()
//-->
</script>
|
|
#3
|
||||
|
||||
|
I can confirm that this works well.
Thank you! |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|