tnguy3n
06-12-2004, 10:00 PM
Display Random Logos on header
modded by tnguy3n @ http://www.all4actions.net
Template mod: 1
- header
This mod displays random logo on form header, like one at vb.org . ^_^
Open header template,
FIND:
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
REPLACE IT WITH:
<script>
var logo=new Array()
logo[0]='<img src="$stylevar[imgdir_misc]/logo1.gif" border="0" alt="$vboptions[bbtitle]" />'
logo[1]='<img src="$stylevar[imgdir_misc]/logo2.gif" border="0" alt="$vboptions[bbtitle]" />'
logo[2]='<img src="$stylevar[imgdir_misc]/logo3.gif" border="0" alt="$vboptions[bbtitle]" />'
logo[3]='<img src="$stylevar[imgdir_misc]/logo4.gif" border="0" alt="$vboptions[bbtitle]" />'
var displaylogo=Math.floor(Math.random()*(logo.length) )
document.write(logo[displaylogo])
</script>
If you have more than 4 logos, you can add more array to that script.
Upload logo1.gif , logo2.gif , logo3.gif , logo4, etc... to images/misc/ dir
modded by tnguy3n @ http://www.all4actions.net
Template mod: 1
- header
This mod displays random logo on form header, like one at vb.org . ^_^
Open header template,
FIND:
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
REPLACE IT WITH:
<script>
var logo=new Array()
logo[0]='<img src="$stylevar[imgdir_misc]/logo1.gif" border="0" alt="$vboptions[bbtitle]" />'
logo[1]='<img src="$stylevar[imgdir_misc]/logo2.gif" border="0" alt="$vboptions[bbtitle]" />'
logo[2]='<img src="$stylevar[imgdir_misc]/logo3.gif" border="0" alt="$vboptions[bbtitle]" />'
logo[3]='<img src="$stylevar[imgdir_misc]/logo4.gif" border="0" alt="$vboptions[bbtitle]" />'
var displaylogo=Math.floor(Math.random()*(logo.length) )
document.write(logo[displaylogo])
</script>
If you have more than 4 logos, you can add more array to that script.
Upload logo1.gif , logo2.gif , logo3.gif , logo4, etc... to images/misc/ dir