日期:2014-05-16 浏览次数:20373 次
<script language="JavaScript"><!-- // The Central Randomizer 1.3 (C) 1997 by Paul Houle (houle@msc.cornell.edu) // See: http://www.msc.cornell.edu/~houle/javascript/randomizer.html rnd.today=new Date(); rnd.seed=rnd.today.getTime(); function rnd() { rnd.seed = (rnd.seed*9301+49297) % 233280; return rnd.seed/(233280.0); }; function rand(number) { return Math.ceil(rnd()*number); }; // end central randomizer. --> </script>
<script language="JavaScript"><!-- document.write('<img src="../images/banner' + rand(10) + '.gif" width=400 height=40>'); //--></script>
<script language="JavaScript"><!-- var number = rand(10); if (number == 1) { var picture = "one.gif";var width = 400;var height = 40; } else if (number == 2) { var picture = "two.jpg";var width = 200;var height = 20; } else if (number == 9) { var picture = "nine.gif";var width = 450;var height = 450; } else if (number == 10) { var picture = "ten.jpg";var width = 40;var height = 400; } document.write('<img src="../images/' + picture + '" width=' + width + ' height=' + height + '>'); //--></script>