How to have multiple logo in one forum

Go down

In progress How to have multiple logo in one forum

Post by Xflint on October 3rd 2016, 11:38 pm

Hi, please is there a script that will help me have a multiple image headers or logo like ten image header or logos at once in my forum and each displayer when the site is refreshed.
avatar
Xflint
Forumember

Male Posts : 37
Reputation : 1
Language : English

http://www.favouriteforum.com

Back to top Go down

In progress Re: How to have multiple logo in one forum

Post by Luffy on October 4th 2016, 1:02 am

Hello there,

Try using this javascript:
Code:
$(function() {
  var banners = [
    'BANNER URL 1',
    'BANNER URL 2',
  ],
 
  logo = document.getElementById('logo');
  if (logo) (logo.tagName == 'IMG' ? logo : logo.firstChild).src = banners[Math.floor(Math.random() * banners.length)];
});
avatar
Luffy
Manager
Manager

Male Posts : 5553
Reputation : 616
Language : Greek, English
Location : Greece

https://help.forumotion.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum