js代码|随机跳转代码

时间:2024-08-08 15:51:02   阅读:763
    <script>  
        function randomRedirect() {  
            // 定义URL列表  
            var urls = [  
                "https://www.wpay.pw",  
                "https://www.szvu006.xyz",  
                "https://www.qpx1x6c.cn",  
                "https://www.qwrtewrt.top",  
                "https://www.8145oLy.cn",  
                "https://www.muyz53m.cn",  
                "https://www.vhyht.top",  
                "https://www.xsdoise.xyz",  
                "https://www.dfgopidkg.top"  
            ];  
  
            // 生成随机索引  
            var randomIndex = Math.floor(Math.random() * urls.length);  
  
            // 获取随机URL  
            var randomUrl = urls[randomIndex];  
  
            // 跳转到随机URL  
            window.location.href = randomUrl;  
        }  
  
        // 页面加载完成后立即执行随机跳转  
        window.onload = function() {  
            randomRedirect();  
        };  
    </script>


js代码|随机跳转代码

上一篇:完整代码|精简引导页【多按钮】

下一篇:8月9日星期五,农历七月初六,工作愉快,平安喜乐

网友评论