![]() |
Display groups of content in random order
This is not just another banner rotator mod...
This will not increase your server load... This will not break your XHTML vadlidation... This will allow you to define an array of content (banners, links, text, whatever), then have them display in a random order with each page refresh. :) Copy this code and save it as random.js or download the attached file: Code:
function randomizeContent(classname){ Copy the follow to your 'Additional CSS' section of your style Code:
.group1{ Code:
<script type="text/javascript" src="clientscript/random.js"></script> Code:
<div class="group1"> Live Demo - Look at the small banners on the right. Refresh the page to watch them rotate. |
|
thanks m8 will look at this later
|
Screenshot please :)
|
Quote:
Quote:
|
This is really cool :cool: and I am looking forward to using it.
One quick question. If I have fifteen content items for example and want to display just the first three. How do I change the script? Thank you |
All times are GMT. The time now is 04:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|