小说专区:

暴力激情

公告: 永久网址【 qu1688.com 】建议您收藏,以免下次找不到本站
var randoms = { ads_codes: [''], ads_weight: [10,10,10], get_random: function(weight) { var s = eval(weight.join('+')); var r = Math.floor(Math.random() * s); var w = 0; var n = weight.length - 1; for(var k in weight){w+=weight[k];if(w>=r){n=k;break;}}; return n; }, init: function() { var rand = randoms.get_random(randoms.ads_weight); document.write(randoms.ads_codes[rand]); } } randoms.init(); document.writeln(""); document.write(''); var randoms = { ads_codes: ['',''); document.write (''); document.write('');
>