//针对不同的随机数,选择不同的广告
document.write('
');
document.write('
document.write('
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0>
');
document.write('' + txt + '');
document.write('
');
//输出广告
//以下为右键弹出广告部分,最好……删除
function click() {
if (event.button==2) {
window.open(url,'popwindows',"toolbar=no,menubar=no,width=200,height=200")
}
}
document.onmousedown=click
End →
哈哈,看明白了吧?我自己是将它存成一个ads.js文件,然后在网页中用来插入,这样以后要换广告也方便啊。
|