说明:下面第一行中的4是网页数量,自己看着办吧
<SCRIPT Language="JavaScript">
tips = new Array(4);
tips[0] = "1.htm";
tips[1] = "2.htm";
tips[2] = "3.htm";
tips[3] = "4.htm";
index = Math.floor(Math.random() * tips.length);
document.write("<iframe frameborder=0 src=" + tips[index] + " width=468 height=60 scrolling=no></iframe>");
</SCRIPT>