The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to have multiple logo in one forum

View previous topic View next topic 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.

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)];
});






Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

View previous topic View next topic Back to top


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