Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 05-08-2020, 09:51 AM
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:49 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05142 seconds
  • Memory Usage 2,612KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (11)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete