================《一》================ <br /> function show(status){ <br /> document.getElementById("div1").style.display = status; <br /> } <br /> 这是一层,能看见吗,呵呵. 显示 关闭 ================《二》================= <br /> function show(status) <br /> { <br /> document.getElementById("div1").style.visibility = status; <br /> setTimeStart(); <br /> } <br /> function setTimeStart() <br /> { <br /> window.setTimeout("document.getElementById('div1').style.visibility = 'hidden';",2000); <br /> } <br /> 这是一层,能看见吗,呵呵. 显示 关闭 ==================《三》===================== <br /> body{<br /> float:left;<br /> background:#ffffcc;<br /> }<br /> #ri{<br /> position:relative;<br /> background:#00CC00;<br /> height:100px;<br /> width:100px;<br /> left:10%;<br /> top:10%; <p>}<br /> .c1{<br /> display:none;<br /> }<br /> #wori{<br /> position:absolute;<br /> background:#00FF00;<br /> left:20px;<br /> top:50px;<br /> }<br /> <br /> function dodo()<br /> {<br /> var jj=document.getElementById("wori");<br /> jj.className=="c1"?jj.className=" ":jj.className="c1"<br /> }<br /> 我是IamV 我点