Recently, I came across a fascinating technique where by simply refreshing the page, the text changes sentences. I managed to implement the code successfully, however, I am having trouble changing the color, size, and alignment of the text.
<script type="text/javascript">
var phrases = new Array(
"Welcome to our website",
"Do you have any game suggestions?",
"Discussing latest trends",
"Let's play games for fun!",
"Not you",
"Pretty please",
"Confused?"
);
</script>
This is just for my reference^^^
This is where it should be displayed
<script type="text/javascript">document.write(phrases[Math.floor(Math.random()*phrases.length)]);
</script>