哪位大歌帮忙修改一段JS代码使其能在新窗口中打开连接

2026年09月09日 20:31
有1个网友回答
网友(1):

var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="";
url="链接地址";
alt="席大之家,童佳倩的羽绒服七天免费包邮试穿";
banner="广告图片";
width="960";
height="402";
}
if (ad==2) {
txt="";
url="链接地址";
alt="MS ANN2011女装新款冬装 裸婚时代同款童佳倩毛呢外套呢大衣";
banner="广告图片";
width="960";
height="400";
}
if (ad==3) {
txt="";
url="链接地址";
alt="2011新款 裸婚时代童佳倩同款奢华大毛领女士羽绒服女短款衣正品";
banner="广告图片";
width="960";
height="402";
}
document.write('

');
document.write('');
document.write('document.write(width + ' height=' + height + ' ');
document.write('alt="' + alt + '" border=0>
');
document.write('' + txt + '
');
document.write('
');