js代码|随机跳转代码
时间:2024-08-08 15:51:02 阅读:1198
Markup
<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>
复制成功!
网友评论