<div id="dd1">
关于我们
</div>
<div id="dd2">
人才招聘
</div>
<div id="dd3">
联系方式
</div>
<div id="dd4">
版权说明
</div><SCRIPT>
var speed=500;
var arr=[document.getElementById("dd1"),document.getElementById("dd2"),document.getElementById("dd3"),document.getElementById("dd4")]
function m()
{
var o=arr.shift()
arr.push(o)
o.style.visibility = "hidden";
setTimeout(function(){  o.style.visibility="visible"; m()  },speed)
}m()
</SCRIPT>

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    </head>
    <SCRIPT>
    var speed=500;
    var a=1,b=2,c=3,d=4,i=0;
    function m()
    {
     i++
     if(a==i)
    whattext.innerText="关于我们" 
    if(b==i)
    whattext.innerText="  人才招聘"
    if(c==i)
    whattext.innerText="   联系方式"
    if(d==i){
    whattext.innerText="   版权说明"
    i=0;
    }
    setTimeout("e()",speed)
    }
    function e()
    {
    whattext.innerText=""
    setTimeout("m()",speed)
    }
    </SCRIPT>
    <body onload=m()>
    <DIV id="whattext" style="FONT-SIZE: 9pt; COLOR: red" align="center"></DIV>
    </body>
    </html>