inherit
36062
0
Jan 14, 2021 7:56:45 GMT -8
Sophia
This is the real me... oh wait...
308
January 2005
svdnent
|
Post by Sophia on Dec 18, 2013 18:14:14 GMT -8
I'm still not sure how to convert 4.5 codes to 5. The one I'm looking to convert is the random banner one: Global Header
<script type="text/javascript"> <!-- /* random banner - open source */ var images = []; var n = 0;
images[n++] = 'Image URL 1'; images[n++] = 'Image URL 2'; images[n++] = 'Image URL 3';
var r = Math.floor(Math.random() * images.length); document.getElementsByTagName('img').item(0).src = images[r]; //--> </script> Seems clean and simple, but I just don't know how to adapt it Can anybody nudge me in the right direction please? Thanks!
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Dec 19, 2013 3:56:41 GMT -8
Sophia, I don't think it's what you're looking for, but maybe it could suffice? www.proboards.com/library/plugins/item/302I am unsure of what settings it has, it may have some so you can have them change every hour or less, as opposed to every day. You could maybe give it a try to see?
|
|
inherit
36062
0
Jan 14, 2021 7:56:45 GMT -8
Sophia
This is the real me... oh wait...
308
January 2005
svdnent
|
Post by Sophia on Dec 19, 2013 12:34:08 GMT -8
Thanks, oh nice smelling one. Search was down yesterday, but today I managed to find another one that actually works like a charm - and no limits to the amount of pictures either support.proboards.com/thread/433496/plugin-random-bannerIt doesn't seem very well supported - it's not in the plugin section and the version is still at 0.1 but it works at that's the main thing Thanks for your help though, I'll definitely look into that plugin you mentioned if the other one stops working!
|
|