The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]() Quote:
Code:
theImages[i] Code:
theImagesA[i] theImagesB[i] I figured you would know to do that since you're changing a variable name there. It's not like you can alter 1 line of code and magically get everything to do everything you want. EDIT: Consider using this instead Code:
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin Random Logo In Header Script var theImagesA = new Array() // do not change this var theImagesB = new Array() // do not change this <!-- Edit the url images to match yours theImagesA[0] = 'images/statusicon/forum_old1.gif' theImagesB[0] = 'images/statusicon/forum_old2.gif' theImagesA[1] = 'images/statusicon/forum_new1.gif' theImagesB[1] = 'images/statusicon/forum_new2.gif' var j = 0 var p = theImagesA.length; var preBufferA = new Array() var preBufferB = new Array() for (i = 0; i < p; i++){ preBufferA[i] = new Image() preBufferA[i].src = theImagesA[i] preBufferB[i] = new Image() preBufferB[i].src = theImagesB[i] } var whichImage = Math.round(Math.random()*(p-1)); function showImage(){ document.write('<td align="$stylevar[left]"><a href="index.php"><img src="'+theImagesA[whichImage]+'" border="0" alt="$vboptions[bbtitle]" /><img src="'+theImagesB[whichImage]+'" border="0" alt="$vboptions[bbtitle]" /></a></div>'); } // End --> </script> |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|