The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#6
|
||||
|
||||
![]()
The following should work, but you have to hook your new template to footer_before_body_ends!
this hook is needed to have jQuery ready loaded. You could change the rotationTime from 3000 = 3 seconds to whatever you want. The # needs to changed! -href = url to the sponsor -img src = url to your image(s) HTML Code:
<style> #delirotatebottombanner { width: 100%; min-width: 320px; max-width: 100%; } .delirbb-bannerlist_wrapper { text-align: center; position: fixed; display: block; bottom: 1px; left: 0; right: 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; width: 100%; z-index: 99; } #delirotatebottombanner ul{ text-align: center; } #delirotatebottombanner ul li{ margin-bottom: 10px; } @media only screen and (min-width:480px) { #delirotatebottombanner { display:none; } } </style> <div id="delirotatebottombanner"> <div class="delirbb-bannerlist_wrapper"> <ul class="delirbb-bannerlist"> <!--Change the href and img src address to your needs!!! This first element must not have class="h-hide"! --> <li><a href="#"><img src="#" /></a></li> <!--You could copy the following line(s) <li> to </li> for each Banner! --> <li class="h-hide"><a href="#"><img src="#" /></a></li> <li class="h-hide"><a href="#"><img src="#" /></a></li> <!--........--> </ul> </div> <div> <script> (function($){ /* you could change the rotation-time here*/ var rotateTime = 3000; /*Do not change anything below this*/ var drbbintv; delirotatebottombanner(rotateTime); function delirotatebottombanner(rotateTime){ var counter = 0, $delirbb_listItems = $('.delirbb-bannerlist li'); drbbintv = setInterval(function() { var $delirbb_listItems = $('.delirbb-bannerlist li'), $delirbb_current = $('.delirbb-bannerlist li:visible'), $delirbb_next = $delirbb_current.next(), $delirbb_last = $('.delirbb-bannerlist li').last(); $delirbb_current.slideUp(); $delirbb_next.slideDown(); $delirbb_current.insertAfter( $delirbb_last ); }, rotateTime); } $('#delirotatebottombanner').on('mouseenter mouseleave', function( e ){ var mEnt = e.type=='mouseenter'; if(mEnt){ clearInterval(drbbintv); }else{ delirotatebottombanner(rotateTime); } }); })(jQuery); </script> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|