HMBeaty |
10-20-2005 10:00 PM |
Rotational Banner in Header
Well, I KNOW alot of you are looking for this as I was so here it is......
Also, found this on vBulletin.com, so ALL credit goes to "express" for this one. :) (I just modified it a little)
Go to AdminCP > Styles and Templates> Style Manager > YOUR TEMPLATE > header
In that, find.....
Code:
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
Under that, add.....
Code:
<SCRIPT LANGUAGE="Javascript"><!--
// ***********************************************
// AUTHOR: <a href="http://WWW.CGISCRIPT.NET," target="_blank">WWW.CGISCRIPT.NET,</a> LLC
// URL: <a href="http://www.cgiscript.net" target="_blank">http://www.cgiscript.net</a>
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( <a href="http://www.cgiscript.net/scripts.htm" target="_blank">http://www.cgiscript.net/scripts.htm</a> )
// ***********************************************
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='REDIRECT URL' target='_blank'><img src='BANNER IMAGE' border='1'></a>"
banner[number++] = "<a href='REDIRECT URL' target='_blank'><img src='BANNER IMAGE' border='1'></a>"
banner[number++] = "<a href='REDIRECT URL' target='_blank'><img src='BANNER IMAGE' border='1'></a>"
// keep adding items here...
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//--></SCRIPT>
Save and you're done
|