We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Random Banner Every Page; By .Scott
Topic Started: Jan 23 2010, 12:45 AM (296 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: .Scott
Random Banner Every Page
 
Code Name: Random Banner
Preview: Click here

Description: Every time you refresh your page a different Banner is displayed. :P

This part goes in Board Wrappers> Header & Body> Javascript:

Quote:
 
<script type="text/javascript">
//New Banner every page
//By slayer766 of thecodingzone.com

NewBan = new Array();

NewBan[0] = "<img src='http://img339.imageshack.us/img339/7762/gemznewbannerv6zc6.png'>";
NewBan[1] = "<img src='http://i1.ifrm.com/style_images/1/logo4.gif'>";
NewBan[2] = "<img src='http://www.aknightstales.com/topsites/button.php?u=julio'>";
</script>


You can add more banners to the code by adding more of these:

Quote:
 
NewBan[3] = "<img src='IMAGE_URL_HERE'>";


Be sure to change the number inside the brackets by 1 everytime you add more banners. [0] [1] [2] and so on. :D

This part goes in Skinning & Styles > Images > Logo Box:

Code:
 
<script>
document.write(NewBan[Math.floor(Math.random()*NewBan.length)])
</script>
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply