随机显示的背景图片 刷新看效果
<!-- 要实现此效果需要 1 个步骤: -->
<!-- 第 1 步: -->
<!-- 把下面的代码加到<BODY></BODY>区域中: -->
<script LANGUAGE="Javascript">
bg = new Array(2); //设定图片数量,如果图片数为3,这个参数就设为2,依次类推
bg[0] = 'images/webasp.net.1.jpg' //显示的图片路径,可用http://
bg[1] = 'images/webasp.net.2.jpg'
bg[2] = 'images/webasp.net.3.jpg'
index = Math.floor(Math.random() * bg.length);
document.body.background=bg[index];
</script>