The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Sliding Banners or Images on Forum Home or Everywhere Details »» | |||||||||||||||||||||||||||||
Sliding Banners or Images on Forum Home or Everywhere
Developer Last Online: Feb 2020
Hi,
Modification : Sliding banners Method : Jquery Example : http://www.xitclub.com/forum.php?styleid=29 ( See Top right Banners on Forum home ) Installation: 1. Download the Attached Files and Upload to Your Forum Root 2. Add The Following Code Where you want to Display Adds ( I use "Advertising>Add New Add>Global>Header" in vb 4.0.7) Code:
<html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="easySlider1.5.js"></script> <script type="text/javascript" charset="utf-8"> // <![CDATA[ $(document).ready(function(){ $("#slider").easySlider({ controlsBefore: '<p id="controls">', controlsAfter: '</p>', auto: true, continuous: true }); }); // ]]> </script> <style type="text/css"> #slider { width:468px; height:30px; margin:0 auto; padding:0; } #slider ul, #slider li { margin:0; padding:0; list-style:none; } /* define width and height of list item (slide) entire slider area will adjust according to the parameters provided here */ #slider li { width:468px; height:60px; overflow:hidden; } body { margin:0; padding:0; width:100%;} /* slider */ .slider {height:60px;} .block_header h2 { color:#f3f4f4; font:bold 28px Arial, Helvetica, sans-serif; margin:0; padding:40px 10px 10px 10px; line-height:1.4em;} .block_header p { color:#f3f4f4; font:normal 12px Arial, Helvetica, sans-serif; margin:0; padding:10px; line-height:1.8em;} </style> </head> <body> <div class="block_header"> <div class="slider"> <div id="slider"> <ul> <li> <div style="background-color:#000; color:#FFF; width:468px; height:60px; padding:0px; margin:0px;"> Your Image or Banner Code Goes Here </div> </li> <li> <div style="background-color:#000; color:#FFF; width:468px; height:60px;">Your Image or Banner Code Goes Here </div> </li> <li> <div style="background-color:#000; color:#FFF; width:468px; height:60px;">Your Image or Banner Code Goes Here </div> </li> <li> <div style="background-color:#000; color:#FFF; width:468px; height:60px;">Your Image or Banner Code Goes Here </div> </li> </ul> </div> </div> </div> </body> </html> Edit The CSS According to Your Needs Download Now
Show Your Support
|
Comments |
#32
|
||||
|
||||
just trying to help other out, think about the community an not just your mod
|
#33
|
|||
|
|||
hmm ok, Thanks for suggestion
|
#34
|
|||
|
|||
looks great as soon as I get to advertising I will look at this more
|
#35
|
|||
|
|||
hi, mine is not showing good. i upload the two js file to the forums root. and add two image but it shown up the image without silde. i place it under the nav bar. any body help?
|
#36
|
|||
|
|||
Quote:
with your image source? like <img src="XXX" /> ? |
#37
|
|||
|
|||
yep.. i put two image there. it shown two image. one top and one below. it just didnt slide. any advice? i upload the folder "js" to my domain root.
|
#38
|
|||
|
|||
okok... i got it work now.. thank.. installed
|
#39
|
|||
|
|||
it look funny after the fourth image and it slide backward. any way to change from scrolling back than jump to image1
|
#40
|
|||
|
|||
This is what I wanted. Not a "mod" really, just some code that can be put into the ad block to rotate images. Thanks!
In answer to the question above about fixing the "rewind" after the last image, that's all built into the easySlider JQuery code. The good news is that if you upgrade from version 1.5 to 1.7, it fixes that problem. Instead of "rewinding", it just smoothly scrolls to the first image after the last image. For the less-code-savvy, it's pretty easy to make that change. Just download version 1.7, place it in the folder where you put version 1.5, and then change the reference to the filename in your code block from "1.5" to "1.7". That's it! |
#41
|
|||
|
|||
Oh, BTW, you can eliminate a lot of the code in this example. The fact that it has styling in place for the body tag could override your theme style (it did mine), so I got rid of it and the rest of the general HTML page stuff.
Here's the less-cluttered code that I used: Code:
<script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="easySlider1.7.js"></script> <script type="text/javascript" charset="utf-8"> // <![CDATA[ $(document).ready(function(){ $("#slider").easySlider({ controlsShow: false, controlsBefore: '<p id="controls">', controlsAfter: '</p>', auto: true, continuous: true, pause: 10000 }); }); // ]]> </script> <style type="text/css"> #slider { width:468px; height:30px; margin: 0 auto; padding:0; } #slider ul, #slider li { margin:0; padding:0; list-style:none; } /* define width and height of list item (slide) entire slider area will adjust according to the parameters provided here */ #slider li { width:468px; height:60px; overflow:hidden; } /* slider */ .slider {height:60px;} </style> <div class="slider"> <div id="slider"> <ul> <li> <div style="background-color:#000; color:#FFF; width:468px; height:60px; padding:0px; margin:0px;"> Ad #1 Here </div> </li> <li> <div style="background-color:#000; color:#FFF; width:468px; height:60px; padding:0px; margin:0px;"> Ad #2 Here </div> </li> <li> <div style="background-color:#000; color:#FFF; width:468px; height:60px; padding:0px; margin:0px;"> Ad #3 Here </div> </li> </ul> </div> </div> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|