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

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.

Male Posts : 37
Reputation : 1
Language : English

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:
$(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)];


Male Posts : 5004
Reputation : 510
Language : Greek, English
Location : Greece

Back to top Go down

Back to top

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