[网页]文本随机显示

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>文本随机显示</title>
</head>

<body>
刷新看看

<script language="JavaScript">
<!-- Hide
var a = Math.random() + ""
var rand1 = a.charAt(5)
quotes = new Array
<!-- 修改下面的文字为你需要的文字-->
quotes[1] = '文本内容1'
quotes[2] = '文本内容2'
quotes[3] = '文本内容3'
quotes[4] = '文本内容4'
quotes[5] = '文本内容5'
quotes[6] = '文本内容6'
quotes[7] = '文本内容7'
quotes[8] = '文本内容8'
quotes[9] = '文本内容9'
quotes[0] = '文本内容10'
var quote = quotes[rand1]
//-->
</script>
<script language="JavaScript">
<!-- Hide
document.write(quote)
// -->
</script>

</body>

</html>

 

posted on 2008-12-17 11:04  草原和大树  阅读(475)  评论(0编辑  收藏  举报