Hello so recently, as of yesterday. I used to run a rotating banner that changes every time the page refreshes. I followed the guide you made here on forumotion and then suddenly it just stopped working? I have the code here and everytime I try and do it now, the banner doesn't show at all and just loads nothing. Here is the code.
- Code:
$(function() {
var banners = [
'http://i38.servimg.com/u/f38/18/21/60/73/b010.png',
'http://orig11.deviantart.net/ada6/f/2017/094/7/d/nn_by_satoace-db4mn24.png',
logo = document.getElementById('i_logo') || document.getElementById('logo') || document.getElementById('pun-logo');
if (logo) (logo.tagName == 'IMG' ? logo : logo.firstChild).src = banners[Math.floor(Math.random() * banners.length)];
});
Last edited by itachi uchiha on Thu 27 Apr - 8:46; edited 1 time in total