This java-script will allow you to add text to your website that fades into different colors. This is very easy to install!
First off, copy and paste the following code into the <head> section of your webpage's source code:
<script type="text/java-script">
function change()
{
re="rgb("+Math.round(Math.random()*256)+","+Math.round(Math.random()*256)+","+Math.round(Math.random()*256)+")"
text.style.color=re;
}
setInterval(change,1000);
</script>
Once that is in the head section of your webpage, you can paste this code into the body of your webpage where you would like the text to appear:
<p id="text"> Here is where you type your text. </p>
The <p> tag is referred to as a paragraph tag. Between the opening and closing paragraph tags, you can type in as much or as little text as you want.
Your visitors will love this effect -- it works in all browsers and can catch anyone's attention!
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=237426