核心代码:
//7:3运算if(Math.ceil(Math.random()*10)>3){ //占比=7 alert('7'); window.location.href="http://www.baidu.com" rel="external nofollow" ;}else{ //占比=3 alert(3); widnow.location.href="//www.VeVB.COm";}通过随机数大小来判断,最好访问哪个网址。大家可以根据自己的需求修改即可。
新闻热点
疑难解答