by Kiekeboe June 11th 2010, 3:02 pm
Allright!
I hope this works xD
This is the script:
- Code:
<A HREF="URLOFYOURFORUMHOMEPAGE!">
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.
theImages[0] = 'LINK1'
theImages[1] = 'LINK2'
theImages[2] = 'LINK3'
theImages[3] = 'LINK4'
// do not edit anything below this line
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>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
showImage();
// End -->
</script>
</BODY>
</A>
The only part you have to edit are these:
Fill in the url your header has to link to!
- Code:
<A HREF="URLOFYOURFORUMHOMEPAGE!">
Make a header picture, upload it and copy the direct link!
Then past it in LINK1, and make an other picture, upload it, paste it in LINK2.
etc.
- Code:
theImages[0] = 'LINK1'
theImages[1] = 'LINK2'
theImages[2] = 'LINK3'
theImages[3] = 'LINK4'
Now, copy the script you made to your clipboard[ctrl+c](Or for mac users CMD+c)
Go to the ACP--->Display--->Templates--->General
Find this template:
overall_header_new
Now click on the wheel to edit it, and search for this part:
- Code:
<!-- BEGIN switch_logo_center -->
<td align="center" width="100%" valign="middle">
<a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a><br />
<div class="maintitle">{MAIN_SITENAME}</div>
<br />
<span class="gen">{SITE_DESCRIPTION}</span>
</td>
<!-- END switch_logo_center -->
Now replace it with this:
- Code:
<!-- BEGIN switch_logo_center -->
<td align="center" width="100%" valign="middle">
HEREYOURSCRIPT<br />
<div class="maintitle">{MAIN_SITENAME}</div>
<br />
<span class="gen">{SITE_DESCRIPTION}</span>
</td>
<!-- END switch_logo_center -->
Replace HEREYOURSCRIPT with the script. Now go back to the templates, And click on the +
Then look at your forum!