inherit
241495
0
Aug 3, 2022 13:02:27 GMT -8
weareallone
Only Ego, Fears, and Illusion separate us.
554
January 2017
weareallone
|
Post by weareallone on Jun 11, 2018 22:06:15 GMT -8
Hello! I am sure this is a simple fix but it is totally stumping me right now. I am attempting to get the background images to show, right now it is only showing a gray background
does anyone see a problem in this code?
<script type="text/javascript"> /* Random Forum Background Image or Color by SubDevo */ /* Global Header - Please leave this header intact. Do not repost. */ /* interoceandesigns.com or lsdp.proboards.com */
var backgrounds=[ // URL to Image or hex color. "https://i.imgur.com/yiLNl7T.jpg", "https://i.imgur.com/AXP5N1T.jpg", "https://i.imgur.com/fsgH7Qm.jpg", "https://i.imgur.com/XBVDHOr.jpg", "https://i.imgur.com/4KLXFkd.jpg", "https://i.imgur.com/3FYGTXH.jpg", "https://i.imgur.com/VzqAy84.jpg", "https://i.imgur.com/YqmR3LT.jpg", "https://i.imgur.com/F9URX6S.jpg", ]; // DON'T TOUCH
var bg=backgrounds[Math.floor(backgrounds.length*Math.random())]; bg=(bg.indexOf("http:")==0)?"-image:url("+bg+")":"-color:#"+bg; document.write("<style type='text/css'>body{background"+bg+";}</sty"+"le>"); </script>
|
|
inherit
140147
0
Apr 30, 2024 0:07:08 GMT -8
Nscalerr 🐺
Throw me to the wolves and I'll return leading the pack!
3,007
May 2009
nscalerr
|
Post by Nscalerr 🐺 on Jun 11, 2018 23:49:11 GMT -8
Hi wearealloneLooks like the script had a few errors and I have managed to rewrite the script and get it working. Copy and paste in to your Global Header. <script type="text/javascript"> <!-- /* Random Forum Background Image or Color by SubDevo */ /* Global Header - Please leave this header intact. Do not repost. */ /* interoceandesigns.com or lsdp.proboards.com */
/* URL to Image or hex color */ var backgrounds=['https://i.imgur.com/yiLNl7T.jpg', 'https://i.imgur.com/AXP5N1T.jpg', 'https://i.imgur.com/fsgH7Qm.jpg', 'https://i.imgur.com/XBVDHOr.jpg', 'https://i.imgur.com/4KLXFkd.jpg', 'https://i.imgur.com/3FYGTXH.jpg', 'https://i.imgur.com/VzqAy84.jpg', 'https://i.imgur.com/YqmR3LT.jpg', 'https://i.imgur.com/F9URX6S.jpg'];
/* Don't Touch */ var bg=backgrounds[Math.floor(backgrounds.length*Math.random())]; bg=(bg.indexOf("http:"))? "-image:url("+bg+")" : "-color:#"+bg; document.write("<style type='text/css'>body{background"+bg+";}</sty"+"le>"); --> </script>
|
|
inherit
241495
0
Aug 3, 2022 13:02:27 GMT -8
weareallone
Only Ego, Fears, and Illusion separate us.
554
January 2017
weareallone
|
Post by weareallone on Jun 12, 2018 10:40:42 GMT -8
Hi weareallone Looks like the script had a few errors and I have managed to rewrite the script and get it working. Copy and paste in to your Global Header.
Thanks man!
Works perfectly, I really appreciate it.
Super fast as well. Thanks for your time and help, take care!
|
|