What would I need to add to the code below to have the random redirect timeout for 5 seconds before triggering?
<script type="text/javascript">
(function(n){
var pages = ['', '', ''];
n = n < 3? 0 : n < 8? 1 : 2;
window.location.replace(pages[n]);
})(Math.floor(Math.random() * 10));
</script>
I know what a regular redirect looks like, but I don't know where to place it within this special array.
<script type="text/JavaScript">
<!--
setTimeout("location.href = 'http://www.yourURL.com';",1500);
-->
</script>
Thanks for any help you're able to provide!