The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to have multiple logo in one forum

2 posters

Go down

In progress How to have multiple logo in one forum

Post by Xflint 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.
Xflint
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 TheCrow 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)];
});
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Back to top

- Similar topics

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