名称:随机广告条显示
例子:
使用方法:
复制下面的代码到你的 html 文件的 <body>和</body> 之间:
<script LANGUAGE="JavaScript">
<!-- Begin
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="http://www.yourlink1.com";
alt="网站名称一";
banner="image1.gif";
width="140";
height="40";
}
if (ad==2) {
txt="这里是广告条二的文字说明";
url="http://www.yourlink2.com/";
alt="网站名称二";
banner="image2.gif";
width="140";
height="40";
}
if (ad==3) {
txt="这里是广告条三的文字说明";
url="http://www.yourlink3.com";
alt="网站名称三";
banner="image3.gif";
width="140";
height="40";
}
document.write('<center>');