<body bgcolor="#
<div id="text" style="font
<script type="text/javascript">
var size =
var falg =
function colortext()
{
//獲取文字的大小
document
document
}
//設置文字顏色
function getcolor()
{
var mycolor = "#";
var color ="
var colorcode = color
for(var i=
{
mycolor+=colorcode[Math
}
return mycolor;
}
//返回字體大小
function getSize()
{
if(falg ==
{
size = size+
if(size ==
falg =
return size;
}
if(falg ==
{
size = size
if(size ==
falg =
return size;
}
}
setInterval("colortext()"
</script>
</body>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20489.html