Hello, I am here today again to ask for help on a site description randomizer, Where the site description's text will change once a page refreshes. I have tried this code but it did not work
I think I was using one for a different PHP. maybe a Phpbb2 or something other than Phpbb3 ( I'm using Phpbb3 by the way ) and I just couldn't get it to work.. Is this for Phpbb3? Or am I just doing something wrong?
- Code:
script type="text/javascript">//<![CDATA[
(function() {
var message = [
'Message 1',
'Message 2',
'Message 3'
];
document.write(message[Math.floor(Math.random() * message.length)]);
})();
//]]></script>
I think I was using one for a different PHP. maybe a Phpbb2 or something other than Phpbb3 ( I'm using Phpbb3 by the way ) and I just couldn't get it to work.. Is this for Phpbb3? Or am I just doing something wrong?
Last edited by Bloxx on September 21st 2016, 11:13 pm; edited 1 time in total