Back to vBulletin 4.x Template Modifications

Banner Rotator Under Navbar
Mod Version: 1.00, by mavigul

vB Version: 4.0.2 Rating: (2 votes - 4.00 average) Installs: 23
Released: 11 Mar 2010 Last Update: Never Downloads: 0
Not Supported Template Edits  

Banner Rotater under Navbar

find in navbar:
PHP Code:
</div><!-- closing div for above_body --> 

add under:

PHP 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] = 'imageurl'
theImages[1] = 'imageurl'
theImages[2] = 'imageurl'
theImages[3] = 'imageurl'
theImages[4] = 'imageurl'
theImages[5] = 'imageurl'



 
var 0
var theImages.length;
var 
preBuffer = new Array()
for (
0pi++){
preBuffer[i] = new Image()
preBuffer[i].src theImages[i]
}
var 
whichImage Math.round(Math.random()*(p-1));
function 
showImage(){
document.write('<div align="center"><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 --> 

change imageurl in yours. Enjoy!

Download

No files for download.

Screenshots

Click image for larger version
Name:	ban_rot.JPG
Views:	1517
Size:	58.3 KB
ID:	113857  

Similar Mods

Miscellaneous Hacks Banner Rotator vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024