Back to vBulletin 3.5 Template Modifications

Banner Rotation
Mod Version: 1.00, by plot

This modification is in the archives.
vB Version: 3.5.3 Rating: (0 vote - 0 average) Installs: 3
Released: 12 Jan 2006 Last Update: Never Downloads: 16
Not Supported  

Okay, this is the first time ive released something to vbulletin.org and i hope there arnt any errors.

This is a script that uses JavaScript to have banners rotate.
There is an example included in the .rar, just extract the 3 files to a memerable directory and open the .htm in IE or FF or any explorer.

To use this as an advertisment method on your forum place the .css and .js files in you rroot directory and just place the following code where you feel necessary.

Note: The page with the code placed on it should be in the same directory as the .css and .js files (if your using this script somewhere other then your forum).

Code:
<link rel="StyleSheet" href="bis_banner.css" type="text/css" />
<script type="text/javascript" src="bis_banner.js"></script>
<script language="javascript">
                        banner1 = new Banner('banner1');
                        //First : "FLASH" OR "IMAGE"
                        //Second: PATH OF THE FILE
                        //Third : DURATION IN SECONDS
                        //Fourth : HEIGHT
                        //Fifth : WIDTH
                        //Sixth: HYPERLINK
                        banner1.add("FIRST", "SECOND", THIRD, FORTH, FIFTH,"SIXTH");
                        //Add more above "//Start" if needed
                        //Start
                        document.write(banner1);
                        banner1.start();
                </script></code>
Replaceing the "first" "second" strings and so forth in <code>banner1.add("FIRST", "SECOND", THIRD, FORTH, FIFTH,"SIXTH");
I placed it in my FORUMHOME template under

Code:
$navbar
If you want to add another banner just add another line below the original and change the strings accordingly, so your cod would look like this.

Code:
<link rel="StyleSheet" href="bis_banner.css" type="text/css" />
<script type="text/javascript" src="bis_banner.js"></script>
<script language="javascript">
                        banner1 = new Banner('banner1');
                        //First : "FLASH" OR "IMAGE"
                        //Second: PATH OF THE FILE
                        //Third : DURATION IN SECONDS
                        //Fourth : HEIGHT
                        //Fifth : WIDTH
                        //Sixth: HYPERLINK
                        banner1.add("FIRST", "SECOND", THIRD, FORTH, FIFTH,"SIXTH");
                        banner1.add("FIRST", "SECOND", THIRD, FORTH, FIFTH,"SIXTH");
                        //Add more above "//Start" if needed
                        //Start
                        document.write(banner1);
                        banner1.start();
                </script>

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024