一个随机调用<Iframe>框架网页的JS代码
说明:下面第一行中的4是网页数量,自己看着办吧<SCRIPT Language="JavaScript">
tips = new Array(4);
tips = "1.htm";
tips = "2.htm";
tips = "3.htm";
tips = "4.htm";
index = Math.floor(Math.random() * tips.length);
document.write("<iframe frameborder=0 src=" tips " width=468 height=60 scrolling=no></iframe>");
</SCRIPT> 广告会比较有效果!
页:
[1]